Package-level declarations

Types

Link copied to clipboard

FirebaseFunctions lets you call Cloud Functions for Firebase.

Link copied to clipboard

Exception that gets thrown when an operation on Firebase Functions fails; its code is a FunctionsExceptionCode and its details the error details the function sent.

Link copied to clipboard

The set of error status codes that can be returned from a Callable HTTPS tigger. These are the canonical error codes for Google APIs, as documented here: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto#L26

Link copied to clipboard

A reference to a particular Callable HTTPS trigger in Cloud Functions.

Link copied to clipboard

The result of a call through an HttpsCallableReference.

Properties

Link copied to clipboard
Link copied to clipboard

code is a member of FirebaseFunctionsException now; this extension keeps an explicit import of it compiling.

Link copied to clipboard

details is a member of FirebaseFunctionsException now; this extension keeps an explicit import of it compiling.

Link copied to clipboard

Returns the FirebaseFunctions instance of the default FirebaseApp.

Link copied to clipboard
val FirebaseFunctions.ios: FIRFunctions
val HttpsCallableReference.ios: FIRHTTPSCallable
val HttpsCallableResult.ios: FIRHTTPSCallableResult

The underlying Firebase iOS SDK object.

Link copied to clipboard

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK callable, created with the reference's current timeout.

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK callable, created with the reference's current timeout.

Functions

Link copied to clipboard
inline fun <T> HttpsCallableResult.data(): T

The CompatHttpsCallableResult.data deserialized as T with kotlinx.serialization.

inline fun <T> HttpsCallableResult.data(strategy: DeserializationStrategy<T>, buildSettings: DecodeSettings.Builder.() -> Unit = {}): T
Link copied to clipboard

Returns the FirebaseFunctions instance of a given FirebaseApp.

Returns the FirebaseFunctions instance of a given region.

Returns the FirebaseFunctions instance of a given FirebaseApp and region.

Link copied to clipboard
Link copied to clipboard

Executes this callable HTTPS trigger without arguments and suspends until the result arrives; see invoke.

inline suspend operator fun <T> HttpsCallableReference.invoke(data: T, buildSettings: EncodeSettings.Builder.() -> Unit = {}): HttpsCallableResult

Executes this callable HTTPS trigger with data, serialized with kotlinx.serialization, and suspends until the result arrives. A failed call throws a FirebaseFunctionsException. See CompatHttpsCallableReference.call.

inline suspend operator fun <T> HttpsCallableReference.invoke(strategy: SerializationStrategy<T>, data: T, buildSettings: EncodeSettings.Builder.() -> Unit = {}): HttpsCallableResult

Executes this callable HTTPS trigger with data serialized by strategy; see invoke.