Outbox triggers
Generated reference for ovok_sdk: outbox triggers.
- Stable unknown
- Release candidate not available
- Development since 0.2.0-dev.51+80996d9
OutboxConnectivity
abstract interface class OutboxConnectivityTells the outbox when the device regains its network connection, so it sends at once.
Methods
OutboxConnectivity.subscribe
void Function() subscribe(void Function() onOnline)Calls onOnline each time the connection returns; returns a function that stops listening.
| Parameter | Type | Kind | Default |
|---|---|---|---|
onOnline | void Function() | positional |
Returns void Function().
OutboxLifecycle
abstract interface class OutboxLifecycleTells the outbox when the app comes to the foreground, so it sends at once.
Methods
OutboxLifecycle.subscribe
void Function() subscribe(void Function() onForeground)Calls onForeground each time the app comes to the foreground; returns a function that stops listening.
| Parameter | Type | Kind | Default |
|---|---|---|---|
onForeground | void Function() | positional |
Returns void Function().
Last updated on