UiModeManager.NightMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the currently configured night mode. -or- Sets the system-wide night mode.
public virtual Android.App.UiNightMode NightMode { [Android.Runtime.Register("getNightMode", "()I", "GetGetNightModeHandler")] get; [Android.Runtime.Register("setNightMode", "(I)V", "GetSetNightMode_IHandler")] set; }
[<get: Android.Runtime.Register("getNightMode", "()I", "GetGetNightModeHandler")>]
[<set: Android.Runtime.Register("setNightMode", "(I)V", "GetSetNightMode_IHandler")>]
member this.NightMode : Android.App.UiNightMode with get, set
Property Value
the current night mode, or -1 on error
- Attributes
Remarks
Returns the currently configured night mode. May be one of: MODE_NIGHT_NO MODE_NIGHT_YES MODE_NIGHT_AUTO MODE_NIGHT_CUSTOM -1 on error
See also:
Android reference for android.app.UiModeManager.getNightMode.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.