Android Guides | Samples

Android.App.UiModeManager.NightMode Property

Syntax

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

Remarks

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:

Requirements

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