module library
Building blocks for the Brudcast module packages, brudcast_in_app and brudcast_push. Apps do
not need this library.
Classes
- BrudcastLog
-
Logs from the Dart side of the SDK at the level given to
initialize. The native SDKs log to Logcat and the unified log themselves.
Constants
- brudcastHandlerTimeout → const Duration
- How long the SDK waits for a host handler before it uses the default.
Functions
-
guardBrudcastCall<
T> (String name, Future< T> call()) → Future<T?> - Runs a call to the native SDK, logging instead of throwing when it fails, so no SDK call throws into the app.
-
runBrudcastHandler<
T> (String name, FutureOr< T> handler(), T fallback) → Future<T> -
Runs a host handler, answering
fallbackwhen it throws or does not answer within brudcastHandlerTimeout, so a faulty handler never stalls a message, a notification or a link.