MCPcopy Create free account
hub / github.com/NativeScript/firebase / fromNative

Method fromNative

packages/firebase-database/index.android.ts:32–39  ·  view source on GitHub ↗
(disconnect: com.google.firebase.database.OnDisconnect)

Source from the content-addressed store, hash-verified

30export class OnDisconnect implements IOnDisconnect {
31 _native: com.google.firebase.database.OnDisconnect;
32 static fromNative(disconnect: com.google.firebase.database.OnDisconnect) {
33 if (disconnect instanceof com.google.firebase.database.OnDisconnect) {
34 const d = new OnDisconnect();
35 d._native = disconnect;
36 return d;
37 }
38 return null;
39 }
40
41 get native() {
42 return this._native;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected