Interface UIAccessibilityReadingContent


  • public interface UIAccessibilityReadingContent
    UIAccessibilityReadingContent Implemented on an element that represents content meant to be read, like a book or periodical. Use in conjunction with UIAccessibilityTraitCausesPageTurn to provide a continuous reading experience with VoiceOver.
    • Method Detail

      • accessibilityContentForLineNumber

        @Nullable
        @Nullable java.lang.String accessibilityContentForLineNumber​(long lineNumber)
        Returns the content associated with a line number as a string. API-Since: 5.0
      • accessibilityFrameForLineNumber

        CGRect accessibilityFrameForLineNumber​(long lineNumber)
        Returns the on-screen rectangle for a line number. API-Since: 5.0
      • accessibilityLineNumberForPoint

        long accessibilityLineNumberForPoint​(CGPoint point)
        Returns the line number given a point in the view's coordinate space. API-Since: 5.0
      • accessibilityPageContent

        @Nullable
        @Nullable java.lang.String accessibilityPageContent()
        Returns a string representing the text displayed on the current page. API-Since: 5.0
      • accessibilityAttributedContentForLineNumber

        @Nullable
        default @Nullable NSAttributedString accessibilityAttributedContentForLineNumber​(long lineNumber)
        If an object adopting this protocol responds to these methods, the system will try sending them before sending the non-attributed versions. API-Since: 11.0
      • accessibilityAttributedPageContent

        @Nullable
        default @Nullable NSAttributedString accessibilityAttributedPageContent()
        API-Since: 11.0