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
val <Error class: unknown class>.android: FirebaseFunctions
val <Error class: unknown class>.android: HttpsCallableReference
val <Error class: unknown class>.android: HttpsCallableResult

The underlying Firebase Android SDK object.

val <Error class: unknown class>.android: FirebaseFunctions
val <Error class: unknown class>.android: HttpsCallableReference
val <Error class: unknown class>.android: HttpsCallableResult

The underlying Firebase Android SDK object.

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
val <Error class: unknown class>.functions: FirebaseFunctions

Returns the FirebaseFunctions instance of the default FirebaseApp.

Link copied to clipboard
val <Error class: unknown class>.ios: <Error class: unknown class>
val <Error class: unknown class>.ios: <Error class: unknown class>
val <Error class: unknown class>.ios: <Error class: unknown class>

The underlying Firebase iOS SDK object.

Link copied to clipboard
val <Error class: unknown class>.js: Functions
val <Error class: unknown class>.js: HttpsCallableResult

The underlying Firebase JS SDK object.

val <Error class: unknown class>.js: HttpsCallable

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

val <Error class: unknown class>.js: Functions
val <Error class: unknown class>.js: HttpsCallableResult

The underlying Firebase JS SDK object.

val <Error class: unknown class>.js: HttpsCallable

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.

fun <T> HttpsCallableResult.data(strategy: DeserializationStrategy<T>, buildSettings: <Error class: unknown class>.() -> Unit = {}): T
Link copied to clipboard
fun <Error class: unknown class>.functions(app: <Error class: unknown class>): FirebaseFunctions

Returns the FirebaseFunctions instance of a given FirebaseApp.

fun <Error class: unknown class>.functions(region: String): FirebaseFunctions

Returns the FirebaseFunctions instance of a given region.

fun <Error class: unknown class>.functions(app: <Error class: unknown class>, region: String): FirebaseFunctions

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: <Error class: unknown class>.() -> 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: <Error class: unknown class>.() -> Unit = {}): HttpsCallableResult

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