Class of android.app · UiModeManager.java · Android's reference
public class UiModeManager
The UI mode: a normal device, night as the configuration says.
public static final int MODE_NIGHT_AUTO = 0 sourcepublic static final int MODE_NIGHT_NO = 1 sourcepublic static final int MODE_NIGHT_YES = 2 sourcepublic static final int MODE_NIGHT_CUSTOM = 3 sourcepublic int getCurrentModeType() sourcepublic int getNightMode() sourcepublic void setNightMode(int mode) empty body sourcepublic void setApplicationNightMode(int mode) empty body sourcepublic float getContrast() sourceMade 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.