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

Method fromNative

packages/firebase-database/index.android.ts:568–575  ·  view source on GitHub ↗
(snapshot: com.google.firebase.database.DataSnapshot)

Source from the content-addressed store, hash-verified

566export class DataSnapshot implements IDataSnapshot {
567 _native: com.google.firebase.database.DataSnapshot;
568 static fromNative(snapshot: com.google.firebase.database.DataSnapshot) {
569 if (snapshot instanceof com.google.firebase.database.DataSnapshot) {
570 const ss = new DataSnapshot();
571 ss._native = snapshot;
572 return ss;
573 }
574 return null;
575 }
576
577 get native() {
578 return this._native;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected