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 keep their signatures through the error-deprecated java.util.concurrent.TimeUnit stand-in and can only be called from Android/JVM code: from common code they fail to compile with a message naming the Duration forms.
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
The call data goes through the format, which applies the Android SDK's rules before the iOS SDK's serializer sees it. A null goes through the no-data entry point: the iOS SDK's Objective-C one with data boxes a nil as a Swift Optional its serializer rejects, while both send the same JSON null.
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.
The call data goes through the format, which applies the Android SDK's rules and writes the JS value the JS SDK takes.
The call data goes through the format, which applies the Android SDK's rules and writes the JS value the JS SDK takes.
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.
A copy of this reference with the given timeout; Android/JVM only, common code uses withTimeout with a Duration.
A copy of this reference whose calls use the given timeout.