UIAccessibility.RequestGuidedAccessSession Method

Definition

Requests that the system enter or leave Guided Access mode.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public static void RequestGuidedAccessSession(bool enable, Action<bool> completionHandler);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)>]
static member RequestGuidedAccessSession : bool * Action<bool> -> unit

Parameters

enable
Boolean

true to enter Guided Access mode; false to leave it.

completionHandler
Action<Boolean>

A callback invoked when the transition completes, with a parameter indicating success.

Attributes

Remarks

When an application is running in Guided Access mode, it can prevent the home button from working, and can control other features of the operating system from working.

For this API call to succeed, the application must be Supervised, and the application must have been enabled for single app mode using Mobile Device Management.

Applies to