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 OutboxConnectivity

Tells 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.

ParameterTypeKindDefault
onOnlinevoid Function()positional

Returns void Function().

OutboxLifecycle

abstract interface class OutboxLifecycle

Tells 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.

ParameterTypeKindDefault
onForegroundvoid Function()positional

Returns void Function().

Last updated on

On this page