UIAccessibility.RequestGuidedAccessSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- enable
- Boolean
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.
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.