共用方式為


UiModeManager.ModeNightAuto Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.UiNightMode enum directly instead of this field.

Constant for #setNightMode(int) and #getNightMode(): automatically switch night mode on and off based on the time.

[Android.Runtime.Register("MODE_NIGHT_AUTO")]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.UiNightMode enum directly instead of this field.", true)]
public const Android.App.UiNightMode ModeNightAuto = 0;
[<Android.Runtime.Register("MODE_NIGHT_AUTO")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.UiNightMode enum directly instead of this field.", true)>]
val mutable ModeNightAuto : Android.App.UiNightMode

Field Value

Value = 0
Attributes

Remarks

Constant for #setNightMode(int) and #getNightMode(): automatically switch night mode on and off based on the time.

Java documentation for android.app.UiModeManager.MODE_NIGHT_AUTO.

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