DevicePolicyManager.GetLockTaskFeatures(ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取为 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
,返回的策略将是当前解析的策略,而不是由调用管理员设置的策略。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。