FirebaseFunctions

public class FirebaseFunctions extends Object

FirebaseFunctions lets you call Cloud Functions for Firebase.

Public Method Summary

HttpsCallableReference
getHttpsCallable(String name)
Returns a reference to the Callable HTTPS trigger with the given name.
static FirebaseFunctions
getInstance(String region)
Creates a Cloud Functions client with the default app and given region.
static FirebaseFunctions
getInstance()
Creates a Cloud Functions client with the default app.
static FirebaseFunctions
getInstance(FirebaseApp app, String region)
Creates a Cloud Functions client with the given app and region.
static FirebaseFunctions
getInstance(FirebaseApp app)
Creates a Cloud Functions client with the given app.
void
useFunctionsEmulator(String origin)
Changes this instance to point to a Cloud Functions emulator running locally.

Inherited Method Summary

Public Methods

public HttpsCallableReference getHttpsCallable (String name)

Returns a reference to the Callable HTTPS trigger with the given name.

public static FirebaseFunctions getInstance (String region)

Creates a Cloud Functions client with the default app and given region.

Parameters
region The region for the HTTPS trigger, such as "us-central1".

public static FirebaseFunctions getInstance ()

Creates a Cloud Functions client with the default app.

public static FirebaseFunctions getInstance (FirebaseApp app, String region)

Creates a Cloud Functions client with the given app and region.

Parameters
app The app for the Firebase project.
region The region for the HTTPS trigger, such as "us-central1".

public static FirebaseFunctions getInstance (FirebaseApp app)

Creates a Cloud Functions client with the given app.

Parameters
app The app for the Firebase project.

public void useFunctionsEmulator (String origin)

Changes this instance to point to a Cloud Functions emulator running locally. See //firebase.google.com/docs/functions/local-emulator

Parameters
origin The origin of the local emulator, such as "//10.0.2.2:5005".

Send feedback about...

Need help? Visit our support page.