FirebaseFunctions.Companion

public static class FirebaseFunctions.Companion


Summary

Public methods

static final @NonNull FirebaseFunctions

Creates a Cloud Functions client with the default app.

static final @NonNull FirebaseFunctions

Creates a Cloud Functions client with the given app.

static final @NonNull FirebaseFunctions
getInstance(@NonNull String regionOrCustomDomain)

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

static final @NonNull FirebaseFunctions
getInstance(@NonNull FirebaseApp app, @NonNull String regionOrCustomDomain)

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

Public methods

getInstance

public static final @NonNull FirebaseFunctions getInstance()

Creates a Cloud Functions client with the default app.

getInstance

public static final @NonNull FirebaseFunctions getInstance(@NonNull FirebaseApp app)

Creates a Cloud Functions client with the given app.

Parameters
@NonNull FirebaseApp app

The app for the Firebase project.

getInstance

public static final @NonNull FirebaseFunctions getInstance(@NonNull String regionOrCustomDomain)

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

Parameters
@NonNull String regionOrCustomDomain

The region or custom domain for the HTTPS trigger, such as "us-central1" or "https://mydomain.com".

getInstance

public static final @NonNull FirebaseFunctions getInstance(@NonNull FirebaseApp app, @NonNull String regionOrCustomDomain)

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

Parameters
@NonNull FirebaseApp app

The app for the Firebase project.

@NonNull String regionOrCustomDomain

The region or custom domain for the HTTPS trigger, such as "us-central1" or "https://mydomain.com".