DevicePolicyManager.GetLockTaskFeatures(ComponentName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets which system features are enabled for LockTask mode.
[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
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with. Null if the
caller is not a device admin.
Returns
bitfield of flags. See #setLockTaskFeatures(ComponentName, int)
for a list.
- Attributes
Remarks
Gets which system features are enabled for LockTask mode.
Starting from Build.VERSION_CODES#UPSIDE_DOWN_CAKE
, the returned policy will be the current resolved policy rather than the policy set by the calling admin.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.