语言

UiModeManager.CurrentModeType 属性

定义

返回当前正在运行的模式类型。

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

属性值

系统返回的当前 UI 模式类型。

特性

注解

返回当前正在运行的模式类型。 可以是Configuration.UI_MODE_TYPE_NORMAL、Configuration.UI_MODE_TYPE_DESK、Configuration.UI_MODE_TYPE_CAR、Configuration.UI_MODE_TYPE_TELEVISION、Configuration.UI_MODE_TYPE_APPLIANCE、Configuration.UI_MODE_TYPE_WATCH或Configuration.UI_MODE_TYPE_VR_HEADSET之一。

Android 参考。android.app.UiModeManager.getCurrentModeType

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于