dismissed
Event invoked when the user performs a "dismiss" action when focused on the accessibility node.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Event
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
public event Func<bool> dismissed
Remarks
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.