Skip to content

Base functions

Lifecycle hooks and event handlers that define when a Flow script runs and what it displays.

Updated View as Markdown
For humans

exit()

Run cleanup logic before a Flow script is reloaded or deleted.

Read article →

html_created()

Access a widget’s HTML element after Flow creates it.

Read article →

info()

Update the information shown in the Flow wheel’s center circle when a tile is hovered.

Read article →

loop_[frequency]()

Run code automatically at 1, 15, 30, or 60 Hz—or once per rendered frame.

Read article →

run()

Run code when the user selects a Flow tile or launches the script through Otto.

Read article →

script_message_rcv()

Handle messages sent to a Flow script by another script.

Read article →

search()

Return custom results when a user searches for a Flow script through Otto.

Read article →

settings_define()

Define user-configurable settings for a Flow script.

Read article →

state()

Update a Flow tile’s label, icon, and displayed state while it is visible.

Read article →

twitch_connection()

Respond when the Flow Twitch integration connects or disconnects.

Read article →

twitch_message()

Handle Twitch chat messages and commands in a Flow script.

Read article →

Navigation

Type to search…

↑↓ navigate↵ selectEsc close