語言

DevicePolicyManager.GetAutoTimeZoneEnabled(ComponentName) 方法

定義

如果裝置啟用了自動時區,則會回傳真。

[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。

傳回

如果裝置啟用自動時區,則為真。

屬性

備註

如果裝置啟用了自動時區,則會回傳真。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於