UIAccessibility. Guided Access Session(Boolean, Action<Boolean>) Request
Guided Access Session(Boolean, Action<Boolean>)
Requests that the system to enter Guided Access mode.
public static void RequestGuidedAccessSession (bool enable, Action<bool> completionHandler);
static member RequestGuidedAccessSession : bool * Action<bool> -> unit
Determines whether you want to enter (true) enable or leave (false) guided access mode.
Method to invoke once the system has successfully transitioned to that state. The method takes a boolean that determines if the transition was successfull.
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 whitelisted using Mobile Device Management.