Action - UNC-Project-Open-AAC/OS-DPI GitHub Wiki
Action is a component that may be added within the Actions tab panel. An Action is an event that occurs when changes to the State match any programmed Conditions. For example, when a CLEAR button is pressed the State of the display window is changed to have the contents erased, when the Condition of button text = ‘CLEAR’ matches.
| Origin | Condition | State | New Value |
|---|---|---|---|
| grid | #label = 'Speak' | $Speak | $Display |
| space | $Display | add_letter('') | |
| keyboard | $prefix | add_letter(#label) | |
| $Display | add_letter(#label) | ||
| predict | $prefix | $Display$prefix | replace_last(#label + ' ')'' |
Origin refers to where the action originates in the design (e.g., layout, grid, homepage).
Note: The rule is the first action in the list always wins. In the screenshot below, the Action that uses #pronounce must be listed first, otherwise the first action of speaking the label (i.e., “it”) will be triggered.
- Cue Circle
- Cue Fill
-
Socket Handler
- Allow communicating with an external service via a WebSocket. Each time