Types of Actions
Every action you can use in an Action Flow
3 min read
When you add an action, you pick it from a menu organized by category. Each action does one thing, and you chain them in order to build behavior.
Navigation — Moving Between Screens
- Screen Navigation — Switches to another Screen. You can specify the transition style and animation.
- Open URL — Opens a web address in the browser or in-app Safari.
- App Store Product Page — Presents another app's App Store product page (requires the app's numeric ID).
Data — Manipulating Data
When data changes, any screen bound to it updates automatically.
- Update Data — Copies one data value to another location. For an array destination, you choose between Append (add to the end) or Replace (swap the whole array).
- Update String / Update Number / Update Bool — Writes a value of a specific type directly to a destination.
- Array Count — Counts the items in an array and outputs the number.
- Get First Item / Get Last Item — Pulls the first/last item of an array and outputs it.
- Data Mapper — Converts data to another schema with a Data Transformer.
- Copy to Clipboard — Copies text to the clipboard.
Math — Calculation
Takes two numbers and outputs a result.
- Add / Subtract / Multiply / Divide — Arithmetic operations
- Compare — Compares two numbers (
==,>,<,>=,<=) and outputs true/false.
Text — Text Processing
- To Uppercase / To Lowercase / To Capitalized — Text transforms
- Compare Text — Compares two strings (equals / contains / starts with / ends with, etc.) and outputs true/false.
Network — API
- API Call — Sends an HTTP request and receives the response. (See Binding API Responses to UI)
Logic — Flow Control
- Conditional — Branches based on a condition. (See Conditions & Branching)
- Guard — When the condition holds, continues to the next action; otherwise stops the flow right there. (See Conditions & Branching)
- For Each — Iterates over an array, running the body actions once per element. (See Conditions & Branching)
- Wait — Pauses execution for a specified amount of time.
Component — Controlling Components
Drive on-screen components straight from an Action Flow.
- Camera Control — Take Photo, toggle front/back, start/stop. The captured image comes out as the action's output. (See Camera)
- Video Control / Lottie Control — Play, pause, stop, and change the source. (See Assets)
- WebView Control — Controls a Web component (load URL, reload, go back/forward).
Service
- Service Start / Service Stop — Turns a Service on or off whenever you want.
UI · Device — Feedback
- Alert / Dialog — Presents an alert or a custom dialog.
- Haptic Feedback — Triggers haptic vibration.
- Share — Shares text or an image through the system share sheet.
- Save to Photos — Saves an image to the Photos app.
- Play System Sound — Plays an iOS system sound.
If you connect a true/false value produced by Compare / Compare Text to Conditions & Branching, you can make the app behave differently depending on the result of a calculation.