functions library

Cloud Functions: calling a callable, on the app Auth already signed into.

Arguments and results travel as the same CBOR the Realtime Database uses, so a map, a list, bytes or a number crosses without anything extra.

Properties

hasFunctions bool
True when the library was built with Functions bound.
no setter

Functions

callFunction(String name, [Object? data]) Future<Object?>
Calls the callable named name.
initFunctions({String region = ''}) → void
Binds Functions to the app already initialized by initDatabase.
useFunctionsEmulator(String origin) → void
Points Functions at a local emulator. origin is a URL, not a host and port — the SDK takes it whole.

Exceptions / Errors

FunctionsException
A callable that failed, carrying the SDK's own code and message.