UiModeManager

Class of android.app · UiModeManager.java · Android's reference

public class UiModeManager

The UI mode: a normal device, night as the configuration says.

Fields

public static final int MODE_NIGHT_AUTO = 0 source
public static final int MODE_NIGHT_NO = 1 source
public static final int MODE_NIGHT_YES = 2 source
public static final int MODE_NIGHT_CUSTOM = 3 source

Methods

public int getCurrentModeType() source
public int getNightMode() source
public void setNightMode(int mode) empty body source
public void setApplicationNightMode(int mode) empty body source
public float getContrast() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.