UIAccessibility.RequestGuidedAccessSessionAsync(Boolean) 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.
Asynchronously requests a transition between normal and Guided Access modes.
public static System.Threading.Tasks.Task<bool> RequestGuidedAccessSessionAsync(bool enable);
static member RequestGuidedAccessSessionAsync : bool -> System.Threading.Tasks.Task<bool>
Parameters
- enable
- Boolean
true to enter Guided Access mode; false to leave it.
Returns
A task that completes with true if the transition succeeded; otherwise, false.