DevicePolicyManager.GetAutoTimeEnabled(ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果在设备上启用自动时间,则返回 true。
[Android.Runtime.Register("getAutoTimeEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual bool GetAutoTimeEnabled(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getAutoTimeEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member GetAutoTimeEnabled : Android.Content.ComponentName -> bool
override this.GetAutoTimeEnabled : Android.Content.ComponentName -> bool
参数
- admin
- ComponentName
DeviceAdminReceiver
此请求与此请求相关联。 如果调用方不是设备管理员,则为 Null。
返回
如果在设备上启用自动时间,则为 true。
- 属性
注解
如果在设备上启用自动时间,则返回 true。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。