DevicePolicyManager.IsLockTaskPermitted(String) Method

Definition

This function lets the caller know whether the given component is allowed to start the lock task mode.

[Android.Runtime.Register("isLockTaskPermitted", "(Ljava/lang/String;)Z", "GetIsLockTaskPermitted_Ljava_lang_String_Handler")]
public virtual bool IsLockTaskPermitted (string? pkg);
[<Android.Runtime.Register("isLockTaskPermitted", "(Ljava/lang/String;)Z", "GetIsLockTaskPermitted_Ljava_lang_String_Handler")>]
abstract member IsLockTaskPermitted : string -> bool
override this.IsLockTaskPermitted : string -> bool

Parameters

pkg
String

The package to check

Returns

Attributes

Remarks

This function lets the caller know whether the given component is allowed to start the lock task mode.

Java documentation for android.app.admin.DevicePolicyManager.isLockTaskPermitted(java.lang.String).

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.

Applies to