UIKit.UIAccessibility.RequestGuidedAccessSession Method
Requests that the system to enter Guided Access mode.

Syntax

[ObjCRuntime.iOS(7, 0)]
public static void RequestGuidedAccessSession (bool enable, Action<bool> completionHandler)

Parameters

enable
Determines whether you want to enter (true) enable or leave (false) guided access mode.
completionHandler
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 whitelisted using Mobile Device Management.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0