isDeviceDarkTheme
Description
Returns whether the device (OS) setting is dark mode, regardless of the theme applied to the app. To check the app's own theme instead, use isDarkTheme.
Parameters
None
Returns
bool
Example
var deviceDark = $app.isDeviceDarkTheme();
$log.i("기기 다크 모드 여부: " + deviceDark);
Related
$app.isDarkTheme()— Whether the app's current theme is dark$app.changeTheme(type)— Switches the app theme (for example, pass2to follow this device setting automatically)