Documentation

Connecting to Events

Connect an Action Flow to events like button taps and page appearance

2 min read

An Action Flow only runs once it's connected to an Event. An event is the trigger that decides "when to run this behavior." Select a component or a Page and connect the Action Flow to the event you want.

Types of events

Which events you can use depends on the target.

Buttons & cells

  • Touch — when you press a button or select a List cell

Gesture-capable views

  • Tap — a single tap
  • Double Tap — two taps
  • Swipe Up / Down / Left / Right — a swipe in each direction

Page

  • Page Load — when the screen first loads
  • Page Appear — when the screen appears
  • Page Disappear — when the screen disappears
  • Search Button Clicked — when the search button is pressed

Examples

  • Connect an API call flow to Page Appear to fetch the latest data every time the screen is shown.
  • Connect a data-add flow to a button's Touch to add an item each time it's pressed.
  • Connect a navigation flow to a List cell's Touch to go to a detail screen when an item is tapped.

You can connect the same Action Flow to multiple events. Build frequently used behavior as a project-level Action Flow and reuse it in many places.