FirebaseFunctions Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
FIRFunctions
@interface FIRFunctions : NSObject
Functions
is the client for Cloud Functions for a Firebase project.
-
Creates a Cloud Functions client using the default or returns a pre-existing instance if it already exists.
returns:
A shared Functions instance initialized with the default FirebaseApp
.
Declaration
Objective-C
+ (FIRFunctions *_Nonnull)functions;
-
Creates a Cloud Functions client with the given app, or returns a pre-existing
instance if one already exists.
\param app The app for the Firebase project.
returns:
A shared Functions instance initialized with the specified FirebaseApp
.
Declaration
Objective-C
+ (FIRFunctions *_Nonnull)functionsForApp:(FIRApp *_Nonnull)app;
-
Creates a Cloud Functions client with the default app and given region.
\param region The region for the HTTP trigger, such as us-central1
.
returns:
A shared Functions instance initialized with the default FirebaseApp
and a custom region.
Declaration
Objective-C
+ (FIRFunctions *_Nonnull)functionsForRegion:(NSString *_Nonnull)region;
-
Creates a Cloud Functions client with the given app and region, or returns a pre-existing
instance if one already exists.
\param customDomain A custom domain for the HTTP trigger, such as "https //mydomain.com".
returns:
A shared Functions instance initialized with the default FirebaseApp
and a custom HTTP trigger domain.
Declaration
Objective-C
+ (FIRFunctions *_Nonnull)functionsForCustomDomain:
(NSString *_Nonnull)customDomain;
-
Creates a Cloud Functions client with the given app and region, or returns a pre-existing
instance if one already exists.
\param app The app for the Firebase project.
\param region The region for the HTTP trigger, such as us-central1
.
returns:
An instance of Functions
with a custom app and region.
Declaration
Objective-C
+ (FIRFunctions *_Nonnull)functionsForApp:(FIRApp *_Nonnull)app
region:(NSString *_Nonnull)region;
-
Creates a Cloud Functions client with the given app and region, or returns a pre-existing
instance if one already exists.
\param app The app for the Firebase project.
\param customDomain A custom domain for the HTTP trigger, such as https://mydomain.com
.
returns:
An instance of Functions
with a custom app and HTTP trigger domain.
Declaration
Objective-C
+ (FIRFunctions *_Nonnull)functionsForApp:(FIRApp *_Nonnull)app
customDomain:(NSString *_Nonnull)customDomain;
-
Creates a reference to the Callable HTTPS trigger with the given name.
\param name The name of the Callable HTTPS trigger.
Declaration
Objective-C
- (FIRHTTPSCallable *_Nonnull)HTTPSCallableWithName:(NSString *_Nonnull)name;
-
Declaration
Objective-C
- (FIRHTTPSCallable * _Nonnull)HTTPSCallableWithURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
-
Declaration
Objective-C
- (void)useEmulatorWithHost:(NSString *_Nonnull)host port:(NSInteger)port;
-
Declaration
Objective-C
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
-
Declaration
Objective-C
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-10-10 UTC.
[null,null,["Last updated 2022-10-10 UTC."],[],[],null,["FIRFunctions \n\n\n @interface FIRFunctions : NSObject\n\n`Functions` is the client for Cloud Functions for a Firebase project.\n- `\n ``\n ``\n `\n\n [+functions](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(cm)functions)`\n ` \n Creates a Cloud Functions client using the default or returns a pre-existing instance if it already exists.\n\n returns:\n A shared Functions instance initialized with the default `FirebaseApp`. \n\n Declaration \n Objective-C \n\n + (FIRFunctions *_Nonnull)functions;\n\n- `\n ``\n ``\n `\n\n [+functionsForApp:](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(cm)functionsForApp:)`\n ` \n Creates a Cloud Functions client with the given app, or returns a pre-existing\n instance if one already exists.\n \\\\param app The app for the Firebase project.\n\n returns:\n A shared Functions instance initialized with the specified `FirebaseApp`. \n\n Declaration \n Objective-C \n\n + (FIRFunctions *_Nonnull)functionsForApp:(FIRApp *_Nonnull)app;\n\n- `\n ``\n ``\n `\n\n [+functionsForRegion:](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(cm)functionsForRegion:)`\n ` \n Creates a Cloud Functions client with the default app and given region.\n \\\\param region The region for the HTTP trigger, such as `us-central1`.\n\n returns:\n A shared Functions instance initialized with the default `FirebaseApp` and a custom region. \n\n Declaration \n Objective-C \n\n + (FIRFunctions *_Nonnull)functionsForRegion:(NSString *_Nonnull)region;\n\n- `\n ``\n ``\n `\n\n [+functionsForCustomDomain:](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(cm)functionsForCustomDomain:)`\n ` \n Creates a Cloud Functions client with the given app and region, or returns a pre-existing\n instance if one already exists.\n \\\\param customDomain A custom domain for the HTTP trigger, such as \"https //mydomain.com\".\n\n returns:\n A shared Functions instance initialized with the default `FirebaseApp` and a custom HTTP trigger domain. \n\n Declaration \n Objective-C \n\n + (FIRFunctions *_Nonnull)functionsForCustomDomain:\n (NSString *_Nonnull)customDomain;\n\n- `\n ``\n ``\n `\n\n [+functionsForApp:region:](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(cm)functionsForApp:region:)`\n ` \n Creates a Cloud Functions client with the given app and region, or returns a pre-existing\n instance if one already exists.\n \\\\param app The app for the Firebase project.\n\n \\\\param region The region for the HTTP trigger, such as `us-central1`.\n\n returns:\n An instance of `Functions` with a custom app and region. \n\n Declaration \n Objective-C \n\n + (FIRFunctions *_Nonnull)functionsForApp:(FIRApp *_Nonnull)app\n region:(NSString *_Nonnull)region;\n\n- `\n ``\n ``\n `\n\n [+functionsForApp:customDomain:](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(cm)functionsForApp:customDomain:)`\n ` \n Creates a Cloud Functions client with the given app and region, or returns a pre-existing\n instance if one already exists.\n \\\\param app The app for the Firebase project.\n\n \\\\param customDomain A custom domain for the HTTP trigger, such as \u003chttps://mydomain.com\u003e.\n\n returns:\n An instance of `Functions` with a custom app and HTTP trigger domain. \n\n Declaration \n Objective-C \n\n + (FIRFunctions *_Nonnull)functionsForApp:(FIRApp *_Nonnull)app\n customDomain:(NSString *_Nonnull)customDomain;\n\n- `\n ``\n ``\n `\n\n [-HTTPSCallableWithName:](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(im)HTTPSCallableWithName:)`\n ` \n Creates a reference to the Callable HTTPS trigger with the given name.\n \\\\param name The name of the Callable HTTPS trigger. \n\n Declaration \n Objective-C \n\n - (../Classes/FIRHTTPSCallable.html *_Nonnull)HTTPSCallableWithName:(NSString *_Nonnull)name;\n\n- `\n ``\n ``\n `\n\n [-HTTPSCallableWithURL:](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(im)HTTPSCallableWithURL:)`\n ` \n Undocumented \n\n Declaration \n Objective-C \n\n - (../Classes/FIRHTTPSCallable.html * _Nonnull)HTTPSCallableWithURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;\n\n- `\n ``\n ``\n `\n\n [-useEmulatorWithHost:port:](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(im)useEmulatorWithHost:port:)`\n ` \n Changes this instance to point to a Cloud Functions emulator running locally.\n See \u003chttps://firebase.google.com/docs/functions/local-emulator\u003e\n \\\\param host The host of the local emulator, such as \"localhost\".\n\n \\\\param port The port of the local emulator, for example 5005. \n\n Declaration \n Objective-C \n\n - (void)useEmulatorWithHost:(NSString *_Nonnull)host port:(NSInteger)port;\n\n- `\n ``\n ``\n `\n\n [-init](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(im)init)`\n ` \n Undocumented \n\n Declaration \n Objective-C \n\n - (nonnull instancetype)init SWIFT_UNAVAILABLE;\n\n- `\n ``\n ``\n `\n\n [+new](#/c:@M@FirebaseFunctions@objc(cs)FIRFunctions(cm)new)`\n ` \n Undocumented \n\n Declaration \n Objective-C \n\n + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG(\"-init is unavailable\");"]]