()
| 148 | } |
| 149 | |
| 150 | activate(): Promise<boolean> { |
| 151 | return new Promise((resolve, reject) => { |
| 152 | this.native.activateWithCompletion((done, error) => { |
| 153 | if (error) { |
| 154 | const err = FirebaseError.fromNative(error); |
| 155 | reject(err); |
| 156 | } else { |
| 157 | resolve(done); |
| 158 | } |
| 159 | }); |
| 160 | }); |
| 161 | } |
| 162 | ensureInitialized(): Promise<void> { |
| 163 | return new Promise((resolve, reject) => { |
| 164 | this.native.ensureInitializedWithCompletionHandler((error) => { |
nothing calls this directly
no test coverage detected