-
Notifications
You must be signed in to change notification settings - Fork 1
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
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
To start a Guided Access session, follow these steps:
- Open the app you want to use.
- Triple-click the Home button.
- 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);
});
Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Getting Started
- Authentication
- Game Center UI
- Leaderboards
- Default Leaderboard
- Achievements
- Saving A Game
- Access Point
- iTunes Connect Setup
- StoreKit Initialization
- Purchase flow
- Receipt Validation
- Store Review Controller
- Storefront API
- Subscription Offers