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

AccessibilityNode.dismissed

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

Returns

void true if the action succeeds and false otherwise.

Description

Event invoked when the user performs a "dismiss" action when focused on the accessibility node.


Subscribe to this event if the visual element that the node represents can be revealed modally or in a hierarchy. For example, you might subscribe to this event if the node represents a dialog box to give users a deliberate dismiss action that closes it.

Your callback should dismiss the visual element represented by the node. After performing any tasks, return an appropriate value to indicate success or failure.

On Android, subscribing to this event enables the "dismiss" action and prompt screen reader to provide instructions on how to activate it. This action is available in the TalkBack local context menu and is different from the "back" system gesture, which activates the Back button of the device.

Platform support: This event is not triggered on Windows. To dismiss a view on Windows, bind your "dismiss" code to the Escape key.