语言

DevicePolicyManager.GetAutoTimeZoneEnabled(ComponentName) 方法

定义

如果在设备上启用了自动时区,则返回 true。

[Android.Runtime.Register("getAutoTimeZoneEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeZoneEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)]
public virtual bool GetAutoTimeZoneEnabled(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getAutoTimeZoneEnabled", "(Landroid/content/ComponentName;)Z", "GetGetAutoTimeZoneEnabled_Landroid_content_ComponentName_Handler", ApiSince=30)>]
abstract member GetAutoTimeZoneEnabled : Android.Content.ComponentName -> bool
override this.GetAutoTimeZoneEnabled : Android.Content.ComponentName -> bool

参数

admin
ComponentName

DeviceAdminReceiver此请求与此请求相关联。 如果调用方不是设备管理员,则为 Null。

返回

如果在设备上启用了自动时区,则为 true。

特性

注解

如果在设备上启用了自动时区,则返回 true。

Java文档android.app.admin.DevicePolicyManager.getAutoTimeZoneEnabled(android.content.ComponentName)。

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

适用于