MCPcopy Index your code
hub / github.com/NativeScript/firebase / AppleProvider

Class AppleProvider

packages/firebase-ui/index.android.ts:412–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412export class AppleProvider extends ProviderBase {
413 _builder: com.firebase.ui.auth.AuthUI.IdpConfig.AppleBuilder;
414 constructor() {
415 super();
416 this._builder = new com.firebase.ui.auth.AuthUI.IdpConfig.AppleBuilder();
417 }
418
419 _scopes: string[] = [];
420 get scopes() {
421 return this._scopes;
422 }
423
424 set scopes(values: string[]) {
425 if (Array.isArray(values)) {
426 this._scopes = values;
427 const scopes = new java.util.ArrayList<string>();
428 this._scopes.forEach((scope) => {
429 scopes.add(scope);
430 });
431 this._builder.setScopes(scopes);
432 }
433 }
434
435 setCustomParameters(params: Record<string, string>) {
436 if (typeof params === 'object') {
437 const parameters = new java.util.HashMap<string, string>();
438 Object.keys(params).forEach((key) => {
439 const value = params[key];
440 parameters.put(key, value);
441 });
442 this._builder.setCustomParameters(parameters);
443 }
444 return this;
445 }
446
447 getNative(ui: IUI) {
448 return this._builder.build();
449 }
450}
451
452export class User {
453 _native: com.firebase.ui.auth.data.model.User;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…