Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

IAccessibilityNotificationDispatcher.SendLayoutChanged

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void SendLayoutChanged(Accessibility.AccessibilityNode nodeToFocus);

Parameters

Parameter Description
nodeToFocus An optional node to be focused by the screen reader after processing the notification. If a node is not provided and the currently focused node still exists, the screen reader does not change its focus.

Description

Notifies the screen reader that the layout of the screen changed and optionally requests it to move its focus to a given accessibility node.


Call this method to notify the screen reader of minor adjustments to the user interface (for example, when a dropdown is opened or closed), or to update the screen reader focus as a result of such changes (for example, to move it off an accessibility node that may have been removed or deactivated so that the screen reader's focus indicator isn’t stuck on a stale node).

Calling this method prompts the screen reader to invalidate its cache of the accessibility hierarchy.

Note: On Windows and macOS, duplicate calls with the same argument are ignored by the screen reader.