UiModeManager.CurrentModeType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回当前正在运行的模式类型。
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
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。