SendPageScrolledAnnouncement(string, AccessibilityNode)
Notifies the screen reader that a scrolling action completed and optionally requests it to move its focus to a given accessibility node.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
void SendPageScrolledAnnouncement(string announcement, AccessibilityNode nodeToFocus = null)
Parameters
Text that describes the new scroll position. For example, or . This text is read by the screen reader after processing the notification.
"Tab 3 of 5""Page 19 of 27"An optional node to be focused by the screen reader after processing the notification.
Remarks
Call this method after responding to the AccessibilityNode.scrolled event to provide the user with information about the contents of the screen after they performed a scroll gesture, and to update the screen reader focus accordingly. For example, to move it off an accessibility node that may have been scrolled out of the screen.
On iOS, if this method is repeatedly called with the same text, the screen reader indicates to the user that scrolling cannot continue due to a border or boundary.