DevicePolicyManager.IsProvisioningAllowed(String) Method

Definition

Returns whether it is possible for the caller to initiate provisioning of a managed profile or device, setting itself as the device or profile owner.

[Android.Runtime.Register("isProvisioningAllowed", "(Ljava/lang/String;)Z", "GetIsProvisioningAllowed_Ljava_lang_String_Handler", ApiSince=24)]
public virtual bool IsProvisioningAllowed (string action);
[<Android.Runtime.Register("isProvisioningAllowed", "(Ljava/lang/String;)Z", "GetIsProvisioningAllowed_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member IsProvisioningAllowed : string -> bool
override this.IsProvisioningAllowed : string -> bool

Parameters

action
String

One of #ACTION_PROVISION_MANAGED_DEVICE, #ACTION_PROVISION_MANAGED_PROFILE.

Returns

whether provisioning a managed profile or device is possible.

Attributes

Remarks

Returns whether it is possible for the caller to initiate provisioning of a managed profile or device, setting itself as the device or profile owner.

Java documentation for android.app.admin.DevicePolicyManager.isProvisioningAllowed(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