(app?: FirebaseApp)
| 635 | _native: com.google.firebase.database.FirebaseDatabase; |
| 636 | _app: FirebaseApp; |
| 637 | constructor(app?: FirebaseApp) { |
| 638 | if (app?.native) { |
| 639 | this._native = com.google.firebase.database.FirebaseDatabase.getInstance(app.native); |
| 640 | } else { |
| 641 | if (defaultDatabase) { |
| 642 | return defaultDatabase; |
| 643 | } |
| 644 | defaultDatabase = this; |
| 645 | this._native = com.google.firebase.database.FirebaseDatabase.getInstance(); |
| 646 | } |
| 647 | } |
| 648 | |
| 649 | useEmulator(host: string, port: number) { |
| 650 | this.native.useEmulator(host === 'localhost' || host === '127.0.0.1' ? '10.0.2.2' : host, port); |
nothing calls this directly
no test coverage detected