Skip to main content

Module channel_live_activity

Module channel_live_activity 

Expand description

An app’s live activity — what it keeps showing outside its windows, a running timer — reached over its collaboration channel.

The app says what it shows with show and takes the controls pressed on it with take_controls. The broker worker sends the latest activity when the primary route joins and whenever it changes, and follows the controls the shell hands back, waking the app for each.

Functions§

show
Show activity, a JSON object, as this app’s live activity, or end it with None. Only a change is sent.
shown
What this app shows as its live activity now.
take_controls
The controls pressed on this app’s live activity since the last call, oldest first.