DevicePolicyManager.GetKeyguardDisabledFeatures(ComponentName) Method

Definition

Determine whether or not features have been disabled in keyguard either by the calling admin, if specified, or all admins that set restrictions on this user and its participating profiles.

[Android.Runtime.Register("getKeyguardDisabledFeatures", "(Landroid/content/ComponentName;)I", "GetGetKeyguardDisabledFeatures_Landroid_content_ComponentName_Handler")]
public virtual Android.App.Admin.KeyguardDisable GetKeyguardDisabledFeatures (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getKeyguardDisabledFeatures", "(Landroid/content/ComponentName;)I", "GetGetKeyguardDisabledFeatures_Landroid_content_ComponentName_Handler")>]
abstract member GetKeyguardDisabledFeatures : Android.Content.ComponentName -> Android.App.Admin.KeyguardDisable
override this.GetKeyguardDisabledFeatures : Android.Content.ComponentName -> Android.App.Admin.KeyguardDisable

Parameters

admin
ComponentName

The name of the admin component to check, or null to check whether any admins have disabled features in keyguard.

Returns

bitfield of flags. See #setKeyguardDisabledFeatures(ComponentName, int) for a list.

Attributes

Remarks

Determine whether or not features have been disabled in keyguard either by the calling admin, if specified, or all admins that set restrictions on this user and its participating profiles. Restrictions on profiles that have a separate challenge are not taken into account.

This method can be called on the DevicePolicyManager instance returned by #getParentProfileInstance(ComponentName) in order to retrieve restrictions on the parent profile.

Java documentation for android.app.admin.DevicePolicyManager.getKeyguardDisabledFeatures(android.content.ComponentName).

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