Skip to content

Guided Access

levching edited this page Apr 15, 2020 · 2 revisions

You can use Guided Access to:

  • Temporarily restrict your iOS device to a single app
  • Disable areas of the screen that aren’t relevant to a task or areas where an accidental gesture might cause a distraction
  • Disable the hardware buttons

Set up Guided Access

Tap Settings > General > Accessibility > Guided Access to set up Guided Access. From there here's what you can do:

  • Turn Guided Access on or off
  • Set a passcode that controls the use of Guided Access and prevents someone from leaving an active session
  • Set whether the device can go to sleep during a session

Start a Guided Access session

To start a Guided Access session, follow these steps:

  1. Open the app you want to use.
  2. Triple-click the Home button.
  3. Adjust settings for the session and then tap Start.

The IOS Native plugin allows to check if Guided Access was enabled or not as showed with the code snippet below.

using SA.iOS.UIKit;
...

if(ISN_Accessibility.UIAccessibilityIsGuidedAccessEnabled) {
    Debug.Log("Guided Access Enabled");
} else {
    Debug.Log("Guided Access Disabled");
}

if Guided Access is Enabled, you can start/stop Guided Access Session:

using SA.iOS.UIKit;
...

bool enabled = true;
ISN_Accessibility.UIAccessibilityRequestGuidedAccessSession(enabled, result =>
{
    Debug.Log("Guided Access Session Request Result: " + result.IsSucceeded);
});

About

Foundation

AV Foundation

App Tracking Transparency

Game Kit

Store Kit

UI Kit

Social

Replay Kit

Contacts

AVKit

Photos

App Delegate

User Notifications

MediaPlayer

Core Location

AdSupport

EventKit

CloudKit

Authentication Services

XCode

Knowledge Base

Clone this wiki locally