Configuration.IsNightModeActive Property

Definition

Retuns whether the configuration is in night mode

public bool IsNightModeActive { [Android.Runtime.Register("isNightModeActive", "()Z", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("isNightModeActive", "()Z", "", ApiSince=30)>]
member this.IsNightModeActive : bool

Property Value

true if night mode is active and false otherwise

Attributes

Remarks

Retuns whether the configuration is in night mode

Java documentation for android.content.res.Configuration.isNightModeActive().

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.

Applies to