Protocol: UIAccessibilityFocus

Overview

The UIAccessibilityFocus informal protocol provides a way to find out whether an assistive technology, such as VoiceOver, is focused on an accessible element.Sent after an assistive technology has set its virtual focus on the accessibility element.Sent after an assistive technology has removed its virtual focus from an accessibility element.Returns a Boolean value indicating whether an assistive technology is focused on the accessibility element.

Instance Method Summary (collapse)

Instance Method Details

- (Object) accessibilityElementDidBecomeFocused

Sent after an assistive technology has set its virtual focus on the accessibility element. Override accessibilityElementDidBecomeFocused if you need to know when an assistive technology has set its virtual focus on an accessibility element.

Returns:

- (Object) accessibilityElementDidLoseFocus

Sent after an assistive technology has removed its virtual focus from an accessibility element. Override accessibilityElementDidLoseFocus if you need to know when an assistive technology has removed its virtual focus from an accessibility element. Note that accessibilityElementDidLoseFocus is sent before accessibilityElementDidBecomeFocused.

Returns:

- (Boolean) accessibilityElementIsFocused

Returns a Boolean value indicating whether an assistive technology is focused on the accessibility element.

Returns:

  • (Boolean)

    YES if an assistive technology is virtually focused on the element; otherwise, NO.