Triggers
Event Triggers serve as the initiators of interactive behavior in your UI, defining precisely when your application should respond to user input or system events. Each trigger acts as a listener, constantly monitoring for specific interactions—from simple clicks to complex gestures or system state changes.
Available Triggers
Interaction
- Pressed - Activates when an object has been pressed
- Clicked - Activates when an object was pressed for a short period of time, then released (not called if scrolled)
- Released - Triggers when a press is released
- Checked - The widget is checked
- Unchecked - The widget is unchecked
- Pressing - Continuously triggered while the object is being pressed
- Long pressed repeat - Called after
long_press_time
in everylong_press_repeat_time
ms (not called if scrolled) - Long pressed - Activates when an object has been pressed for a longer period of time
- Short clicked - Activates when a short click is detected
- Press lost - Triggers when a press is interrupted
Gesture
- Gesture up - Detects upward gesture on a widget
- Gesture right - Detects rightward gesture on a widget
- Gesture down - Detects downward gesture on a widget
- Gesture left - Detects leftward gesture on a widget
Scroll
- Scroll - Triggers during scrolling operations
- Scroll begin - Called when scrolling starts
- Scroll end - Called when scrolling ends
- Scroll throw begin - Triggers when a scroll momentum throw begins
Focus/Input
- Indev reset - Input device reset event
- Key - A key is sent to the widget
- Focused - Activates when an object gains focus
- Defocused - Triggers when an object loses focus
- Leave - Called when the pointer leaves the object
- Hit test - Used for hit testing operations
Operation
- Cancel - A process has been cancelled
- Value changed - The value of the object has been changed
- Refresh - Widget needs to be refreshed
- Insert - Something has been inserted
- Ready - A process has finished
Lifecycle
- Create - Widget creation event
- Delete - Widget deletion event
Child Management
- Child changed - A child widget has been changed
- Child created - A child widget has been created
- Child deleted - A child widget has been deleted
Screen
- Screen unloaded - A screen was unloaded, called when all animations are finished
- Screen loaded - A screen was loaded, called when all animations are finished
- Screen load start - A screen load started, fired when the screen change delay is expired
- Screen unload start - Triggered at the beginning of a screen transition, activating immediately when a screen change is initiated
Layout
- Get self size - Get the widget's size
- Style changed - Widget style has been changed
- Layout changed - Layout has been changed
- Size changed - Widget size has been changed## Complete your Event
To complete an event, you'll need to add at least one action that defines what happens when the trigger occurs. To learn more about how actions work and the various options available, visit our documentation by clicking here.