HttpsCallableReference
A reference to a callable HTTPS trigger in Cloud Functions, mirroring com.google.firebase.functions.HttpsCallableReference from the Firebase Android SDK. Obtained from FirebaseFunctions.getHttpsCallable or getHttpsCallableFromUrl.
The timeout is set with the setTimeout and withTimeout extensions taking a kotlin.time.Duration; the Android SDK's TimeUnit overloads are JVM-only and deprecated with an error in common code.
Not mirrored: stream() (returns an org.reactivestreams.Publisher, which is JVM-only, and the iOS SDK's streaming API is Swift-only).
A reference to a callable HTTPS trigger in Cloud Functions, mirroring com.google.firebase.functions.HttpsCallableReference from the Firebase Android SDK. Obtained from FirebaseFunctions.getHttpsCallable or getHttpsCallableFromUrl.
The timeout is set with the setTimeout and withTimeout extensions taking a kotlin.time.Duration; the Android SDK's TimeUnit overloads are JVM-only and deprecated with an error in common code.
Not mirrored: stream() (returns an org.reactivestreams.Publisher, which is JVM-only, and the iOS SDK's streaming API is Swift-only).
The JS SDK fixes a callable's options, including its timeout, when the callable is created, so the reference keeps what it needs to create one and js is created on demand with the current timeout.
Properties
The underlying Firebase iOS SDK object; withTimeout creates a new one, so it is kept per reference.
Functions
Executes this callable HTTPS trigger without arguments. The request automatically carries the Firebase installation id and, when a user is signed in, their auth token. A failed task carries a FirebaseFunctionsException.
Executes this callable HTTPS trigger without arguments. The request automatically carries the Firebase installation id and, when a user is signed in, their auth token. A failed task carries a FirebaseFunctionsException.
Executes this callable HTTPS trigger without arguments. The request automatically carries the Firebase installation id and, when a user is signed in, their auth token. A failed task carries a FirebaseFunctionsException.
Executes this callable HTTPS trigger without arguments. The request automatically carries the Firebase installation id and, when a user is signed in, their auth token. A failed task carries a FirebaseFunctionsException.
Executes this callable HTTPS trigger without arguments. The request automatically carries the Firebase installation id and, when a user is signed in, their auth token. A failed task carries a FirebaseFunctionsException.
Executes this callable HTTPS trigger without arguments and suspends until the result arrives; see invoke.
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.
Sets the timeout of the calls made through this reference; Android/JVM only, common code uses setTimeout with a Duration.
Sets the timeout of the calls made through this reference; Android/JVM only, common code uses setTimeout with a Duration.
Sets the timeout of the calls made through this reference; Android/JVM only, common code uses setTimeout with a Duration.
Sets the timeout of the calls made through this reference; Android/JVM only, common code uses setTimeout with a Duration.
Sets the timeout of the calls made through this reference; Android/JVM only, common code uses setTimeout with a Duration.
Sets the timeout of the calls made through this reference.
Sets the timeout of the calls made through this reference.
Sets the timeout of the calls made through this reference.
Sets the timeout of the calls made through this reference.
Sets the timeout of the calls made through this reference.
Not in the common API (org.reactivestreams is JVM-only); the shipped streamAsFlow extension binds to it.
Calls the function with data and streams its response: a StreamResponse.Message for every chunk the function sends while it runs, then a StreamResponse.Result with its return value, after which the flow completes. A failed call fails the flow with a FirebaseFunctionsException.
Fails: the iOS SDK's streaming API (Callable.stream) is Swift-only, which Kotlin/Native cannot call.
Calls the function with data and streams its response: a StreamResponse.Message for every chunk the function sends while it runs, then a StreamResponse.Result with its return value, after which the flow completes. A failed call fails the flow with a FirebaseFunctionsException.
Over the JS SDK's callable.stream(data): its async iterable of chunks, then its data promise.
Over the JS SDK's callable.stream(data): its async iterable of chunks, then its data promise.
A copy of this reference with the given timeout; Android/JVM only, common code uses withTimeout with a Duration.
A copy of this reference with the given timeout; Android/JVM only, common code uses withTimeout with a Duration.
A copy of this reference with the given timeout; Android/JVM only, common code uses withTimeout with a Duration.
A copy of this reference with the given timeout; Android/JVM only, common code uses withTimeout with a Duration.
A copy of this reference with the given timeout; Android/JVM only, common code uses withTimeout with a Duration.