DevicePolicyManager.GetAutoTimeEnabled(ComponentName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果裝置啟用了自動時間,則會回傳真值。
[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。
傳回
如果裝置啟用了自動時間,則為真。
- 屬性
備註
如果裝置啟用了自動時間,則會回傳真值。
Java 文件 android.app.admin.DevicePolicyManager.getAutoTimeEnabled(android.content.ComponentName)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。