How to determine if hardware buttons are disabled using managed access in Objective-C?

My application asks users to manually enter a session Guided Access. Is there a way using public APIs that I can detect when the home button is turned off by manually entering a managed access session and then at the same time when it is turned on again?

+3
source share
1 answer

I found this! "Managed access" ensures that the "Home" button is disabled, so it will work for this. Unable to detect lock button.

NSLog(@"Accessibility enabled: %@", UIAccessibilityIsGuidedAccessEnabled() ? @"YES" : @"NO");
0
source

All Articles