Functions
class Functions : NSObject
FIRFunctions
is the client for Cloud Functions for a Firebase project.
-
Undocumented
-
Creates a Cloud Functions client with the default app.
Declaration
Swift
class func functions() -> Self
-
Creates a Cloud Functions client with the given app.
Declaration
Swift
class func functions(app: FIRApp) -> Self
Parameters
app
The app for the Firebase project.
-
Creates a Cloud Functions client with the default app and given region.
Declaration
Swift
class func functions(region: String) -> Self
Parameters
region
The region for the http trigger, such as
us-central1
. -
Creates a Cloud Functions client with the given app and region.
Declaration
Swift
class func functions(app: FIRApp, region: String) -> Self
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
Swift
func httpsCallable(_ name: String) -> FIRHTTPSCallable
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
Swift
func useFunctionsEmulator(origin: String)
Parameters
origin
The origin of the local emulator, such as
http://localhost:5005
.