Partager via


UiModeManager.CurrentModeType Property

Definition

Return the current running mode type.

public virtual Android.Content.Res.UiMode CurrentModeType { [Android.Runtime.Register("getCurrentModeType", "()I", "GetGetCurrentModeTypeHandler")] get; }
[<get: Android.Runtime.Register("getCurrentModeType", "()I", "GetGetCurrentModeTypeHandler")>]
member this.CurrentModeType : Android.Content.Res.UiMode

Property Value

Attributes

Remarks

Return the current running mode type. May be one of Configuration#UI_MODE_TYPE_NORMAL Configuration.UI_MODE_TYPE_NORMAL, Configuration#UI_MODE_TYPE_DESK Configuration.UI_MODE_TYPE_DESK, Configuration#UI_MODE_TYPE_CAR Configuration.UI_MODE_TYPE_CAR, Configuration#UI_MODE_TYPE_TELEVISION Configuration.UI_MODE_TYPE_TELEVISION, Configuration#UI_MODE_TYPE_APPLIANCE Configuration.UI_MODE_TYPE_APPLIANCE, Configuration#UI_MODE_TYPE_WATCH Configuration.UI_MODE_TYPE_WATCH, or Configuration#UI_MODE_TYPE_VR_HEADSET Configuration.UI_MODE_TYPE_VR_HEADSET.

Java documentation for android.app.UiModeManager.getCurrentModeType().

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