I try to pause voice over and get an exception:
UIAccessibilityPostNotification(UIAccessibilityPauseAssistiveTechnologyNotification, UIAccessibilityNotificationVoiceOverIdentifier)
'NSInvalidArgumentException', reason: 'You must pass the identifier of the assistive technology to pause. See UIAccessibilityConstants.h for the list of valid values.'
What's wrong? Thanks!
I too ran into this issue and despite the voice over identifier is marked being available since ios9 it still continues to crash on ios10. After looking into the documentation made me think that the 'pause / resume assistive technology' is not meant for voice over after all.
"Should be posted to pause an assistive technology's operations temporarily. For example, you may want to pause scanning in Switch Control while your app plays an animation. An identifier representing the assistive technology should be used as the argument. Currently, these notifications only apply to Switch Control. The notifications must be balanced. That is, every UIAccessibilityPauseAssistiveTechnologyNotification should be followed by a matching UIAccessibilityResumeAssistiveTechnologyNotification with the same argument. If the user performs an action that requires the assistive technology to resume operations, it may do so before it receives the corresponding UIAccessibilityResumeAssistiveTechnologyNotification. The argument is a NSString."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With