Android Guides | Samples

Android.App.UiModeManager.NightMode Property


[get: Android.Runtime.Register("getNightMode", "()I", "GetGetNightModeHandler")]
[set: Android.Runtime.Register("setNightMode", "(I)V", "GetSetNightMode_IHandler")]
public virtual UiNightMode NightMode { get; set; }


Get method documentation[Android Documentation]

Set method documentation[Android Documentation]
Sets the night mode. Changes to the night mode are only effective when the car or desk mode is enabled on a device. The mode can be one of:


Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:
Since: Added in API level 8