In my app I want to check if guided access is activated by the user (3 clicks on the home button).
Is there a way to do this?
In Objective-C there is a declaration:
BOOL UIAccessibilityIsGuidedAccessEnabled(void);
I tried to translated it into a declare function, but it is not working:
Declare Function UIAccessibilityIsGuidedAccessEnabled Lib “UIKit” Selector “UIAccessibilityIsGuidedAccessEnabled” (classRef As Ptr) As Boolean
Return UIAccessibilityIsGuidedAccessEnabled(Nil)