Edit

Share via


UIGuidedAccessRestriction.GetState(String) Method

Definition

Returns the state (allow,deny) for the specified restrictionIdentifier.

public static UIKit.UIGuidedAccessRestrictionState GetState (string restrictionIdentifier);
static member GetState : string -> UIKit.UIGuidedAccessRestrictionState

Parameters

restrictionIdentifier
String

The identifier of the restriction.

Returns

Allow means that the application should allow the behavior. Deny means that the application should not allow the behavior.

Remarks

You can enable Guided Access mode by calling RequestGuidedAccessSession(Boolean, Action<Boolean>).

Applies to