firebase:: functions:: Functions
#include <functions.h>
Entry point for the Firebase C++ SDK for CloudFunctions.
Summary
To use the SDK, callfirebase::functions::Functions::GetInstance() to obtain an instance ofFunctions, then useGetHttpsCallable() to obtain references to callable functions. From there you can call them with CallableReference::Call().
Constructors and Destructors | |
---|---|
~Functions() Destructor. |
Public functions | |
---|---|
GetHttpsCallable(const char *name) const | Get a FunctionsReference for the specified path. |
GetHttpsCallableFromURL(const char *url) const | Get a FunctionsReference for the specified URL. |
UseFunctionsEmulator(const char *origin) | void Sets an origin for a CloudFunctions emulator to use. |
app() | ::firebase::App * Get thefirebase::App that thisFunctions was created with. |
Public static functions | |
---|---|
GetInstance(::firebase::App *app,InitResult *init_result_out) | |
GetInstance(::firebase::App *app, const char *region,InitResult *init_result_out) |
Public functions
GetHttpsCallable
HttpsCallableReferenceGetHttpsCallable(constchar*name)const
Get a FunctionsReference for the specified path.
GetHttpsCallableFromURL
HttpsCallableReferenceGetHttpsCallableFromURL(constchar*url)const
Get a FunctionsReference for the specified URL.
UseFunctionsEmulator
voidUseFunctionsEmulator(constchar*origin)
Sets an origin for a CloudFunctions emulator to use.
app
::firebase::App*app()
Get thefirebase::App that thisFunctions was created with.
Details | |
---|---|
Returns | Thefirebase::App thisFunctions was created with. |
~Functions
~Functions()
Public static functions
GetInstance
Functions*GetInstance(::firebase::App*app,InitResult*init_result_out)
Get an instance ofFunctions corresponding to the givenApp.
CloudFunctions usesfirebase::App to communicate with Firebase Authentication to authenticate users to the server backend.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
GetInstance
Functions*GetInstance(::firebase::App*app,constchar*region,InitResult*init_result_out)
Get an instance ofFunctions corresponding to the givenApp.
CloudFunctions usesfirebase::App to communicate with Firebase Authentication to authenticate users to the server backend.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
| ||||||
Returns |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-23 UTC.