語言

DevicePolicyManager.GetLockTaskFeatures(ComponentName) 方法

定義

取得 LockTask 模式啟用的系統功能。

[Android.Runtime.Register("getLockTaskFeatures", "(Landroid/content/ComponentName;)I", "GetGetLockTaskFeatures_Landroid_content_ComponentName_Handler", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_LOCK_TASK")]
public virtual int GetLockTaskFeatures(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getLockTaskFeatures", "(Landroid/content/ComponentName;)I", "GetGetLockTaskFeatures_Landroid_content_ComponentName_Handler", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_LOCK_TASK")>]
abstract member GetLockTaskFeatures : Android.Content.ComponentName -> int
override this.GetLockTaskFeatures : Android.Content.ComponentName -> int

參數

admin
ComponentName

這個請求就是和這個 DeviceAdminReceiver 問題有關的。 如果呼叫者不是裝置管理員,則為 Null。

傳回

旗幟的比特場。 請參考 #setLockTaskFeatures(ComponentName, int) 相關清單。

屬性

備註

取得 LockTask 模式啟用的系統功能。

從 開始 Build.VERSION_CODES#UPSIDE_DOWN_CAKE,回傳的政策將是目前已解決的政策,而非呼叫管理員設定的政策。

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

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

適用於