Instance Method

accessibilityPerformMagicTap

Performs a salient action.

Declaration

- (BOOL)accessibilityPerformMagicTap;

Return Value

YES if the magic tap action succeeds; otherwise, NO. By default, this method returns NO.

Discussion

The exact action performed by this method depends your app, typically toggling the most important state of the app. For example, in the Phone app it answers and ends phone calls, in the Music app it plays and pauses playback, in the Clock app it starts and stops a timer, and in the Camera app it takes a picture.

See Also

Performing an Action

- accessibilityActivate

Tells the element to activate itself and report the success or failure of the operation.

- accessibilityIncrement

Tells the accessibility element to increment the value of its content.

- accessibilityDecrement

Tells the accessibility element to decrement the value of its content.

- accessibilityScroll:

Scrolls screen content in an application-specific way and returns the success or failure of the action.

- accessibilityPerformEscape

Dismisses a modal view and returns the success or failure of the action.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software