Interface UIScrollViewAccessibilityDelegate

  • All Superinterfaces:
    UIScrollViewDelegate

    public interface UIScrollViewAccessibilityDelegate
    extends UIScrollViewDelegate
    Provide a custom status string when VoiceOver scrolls with accessibilityScroll: For example, in a bookcase user interface that displays a list of books, you can implement this protocol to announce "Showing books 10 through 20". By default, VoiceOver will announce "Page X of Y" when scrolling.
    • Method Detail

      • accessibilityScrollStatusForScrollView

        @Nullable
        default @Nullable java.lang.String accessibilityScrollStatusForScrollView​(@NotNull
                                                                                  @NotNull UIScrollView scrollView)
      • accessibilityAttributedScrollStatusForScrollView

        @Nullable
        default @Nullable NSAttributedString accessibilityAttributedScrollStatusForScrollView​(@NotNull
                                                                                              @NotNull UIScrollView scrollView)
        If an object adopting this protocol responds to this method, the system will try sending it before sending its non-attributed version. API-Since: 11.0