Skip to main content

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);
  • $app.isDarkTheme() — Whether the app's current theme is dark
  • $app.changeTheme(type) — Switches the app theme (for example, pass 2 to follow this device setting automatically)