FIRFunctions


@interface FIRFunctions : NSObject

FIRFunctions is the client for Cloud Functions for a Firebase project.

  • Undocumented

    Declaration

    Objective-C

    - (id)init NS_UNAVAILABLE;
  • Creates a Cloud Functions client with the default app.

    Declaration

    Objective-C

    + (nonnull instancetype)functions;
  • Creates a Cloud Functions client with the given app.

    Declaration

    Objective-C

    + (nonnull instancetype)functionsForApp:(nonnull FIRApp *)app;

    Parameters

    app

    The app for the Firebase project.

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

    Declaration

    Objective-C

    + (nonnull instancetype)functionsForRegion:(nonnull NSString *)region;

    Parameters

    region

    The region for the http trigger, such as us-central1.

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

    Declaration

    Objective-C

    + (nonnull instancetype)functionsForApp:(nonnull FIRApp *)app
                                     region:(nonnull NSString *)region;

    Parameters

    app

    The app for the Firebase project.

    region

    The region for the http trigger, such as us-central1.

  • Creates a reference to the Callable HTTPS trigger with the given name.

    Declaration

    Objective-C

    - (nonnull FIRHTTPSCallable *)HTTPSCallableWithName:(nonnull NSString *)name;

    Parameters

    name

    The name of the Callable HTTPS trigger.

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

    Declaration

    Objective-C

    - (void)useFunctionsEmulatorOrigin:(nonnull NSString *)origin;

    Parameters

    origin

    The origin of the local emulator, such as http://localhost:5005.