This page is translated by Cloud Translation API
Switch to Chinese
This page is translated by Cloud Translation API
Switch to Chinese

# uni.onThemeChange(CALLBACK)

listen to system theme state changes.

CALLBACK return parameter

Parameter Type Instruction
theme String Theme name (dark, light) App2.6.5+ iOS only

Example

uni.onThemeChange(function (res) {
	console.log(res.theme);
});
About Neuxnet: Neuxnet Website