Interface UIAccessibilityReadingContent


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

      • accessibilityContentForLineNumber

        java.lang.String accessibilityContentForLineNumber​(long lineNumber)
        Returns the content associated with a line number as a string.
      • accessibilityFrameForLineNumber

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

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

        java.lang.String accessibilityPageContent()
        Returns a string representing the text displayed on the current page.
      • accessibilityAttributedContentForLineNumber

        default 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.
      • accessibilityAttributedPageContent

        default NSAttributedString accessibilityAttributedPageContent()