UIAccessibility.RequestGuidedAccessSessionAsync(Boolean) Method

Definition

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.

Applies to