DeviceAdminInfo.UsesPolicy(DeviceAdminUses) Method

Definition

Return true if the device admin has requested that it be able to use the given policy control.

[Android.Runtime.Register("usesPolicy", "(I)Z", "")]
public bool UsesPolicy (Android.App.Admin.DeviceAdminUses policyIdent);
[<Android.Runtime.Register("usesPolicy", "(I)Z", "")>]
member this.UsesPolicy : Android.App.Admin.DeviceAdminUses -> bool

Parameters

policyIdent
DeviceAdminUses

Returns

Attributes

Remarks

Return true if the device admin has requested that it be able to use the given policy control. The possible policy identifier inputs are: #USES_POLICY_LIMIT_PASSWORD, #USES_POLICY_WATCH_LOGIN, #USES_POLICY_RESET_PASSWORD, #USES_POLICY_FORCE_LOCK, #USES_POLICY_WIPE_DATA, #USES_POLICY_EXPIRE_PASSWORD, #USES_ENCRYPTED_STORAGE, #USES_POLICY_DISABLE_CAMERA.

Java documentation for android.app.admin.DeviceAdminInfo.usesPolicy(int).

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