setDarkMode
Enable or disable dark mode to test light/dark UI behavior.
The setDarkMode command sets the system-wide dark mode (light/dark appearance) state on the device.
Syntax
The command takes a single required argument that specifies the desired state for dark mode.
The following example enables dark mode:
- setDarkMode: enabledThe following example disables dark mode:
- setDarkMode: disabledRelated commands
Last updated