(app?: FirebaseApp)
| 143 | _app: FirebaseApp; |
| 144 | |
| 145 | constructor(app?: FirebaseApp) { |
| 146 | if (app?.native) { |
| 147 | this._native = defaultRegionOrCustomDomain ? com.google.firebase.functions.FirebaseFunctions.getInstance(app.native, defaultRegionOrCustomDomain) : com.google.firebase.functions.FirebaseFunctions.getInstance(app.native); |
| 148 | } else { |
| 149 | if (defaultFunctions) { |
| 150 | return defaultFunctions; |
| 151 | } |
| 152 | defaultFunctions = this; |
| 153 | // If defaultRegionOrCustomDomain is set, get FirebaseFunctions instance using that parameter |
| 154 | // @see https://firebase.google.com/docs/functions/locations_client-side_location_selection_for_callable_functions |
| 155 | this._native = defaultRegionOrCustomDomain ? com.google.firebase.functions.FirebaseFunctions.getInstance(defaultRegionOrCustomDomain) : com.google.firebase.functions.FirebaseFunctions.getInstance(); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | httpsCallable(name: string, options?: HttpsCallableOptions): HttpsCallable { |
| 160 | const callable = this.native.getHttpsCallable(name); |
nothing calls this directly
no test coverage detected