Protocol: UIAccessibilityReadingContent
Overview
The UIAccessibilityReadingContent protocol can be implemented on an object that represents content that is intended to be read by users, such as a book or an article. To give VoiceOver users a superior, continuous reading experience, you can implement this protocol on such an element, characterize it with the UIAccessibilityTraitCausesPageTurn trait, and use the UIAccessibilityScrollDirectionNext and UIAccessibilityScrollDirectionPrevious constants to enable page turning.Returns the text associated with the specified line number. (required)Returns the onscreen frame associated with the specified line number. (required)Returns the line number that contains the specified point. (required)Returns the text displayed on the current page. (required)
Instance Method Summary (collapse)
-
- accessibilityContentForLineNumber:
Returns the text associated with the specified line number.
-
- accessibilityFrameForLineNumber:
Returns the onscreen frame associated with the specified line number.
-
- accessibilityLineNumberForPoint:
Returns the line number that contains the specified point.
-
- accessibilityPageContent
Returns the text displayed on the current page.
Instance Method Details
- (String) accessibilityContentForLineNumber(lineNumber)
Returns the text associated with the specified line number. (required)
- (CGRect) accessibilityFrameForLineNumber(lineNumber)
Returns the onscreen frame associated with the specified line number. (required) To determine the onscreen rectangle (or frame) of a line, you can use code such as the following:
- (Integer) accessibilityLineNumberForPoint(point)
Returns the line number that contains the specified point. (required) This method is called only when point is within the bounds of the view or element.
- (String) accessibilityPageContent
Returns the text displayed on the current page. (required)