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

Method fromNative

packages/firebase-database/index.android.ts:371–378  ·  view source on GitHub ↗
(ref: com.google.firebase.database.DatabaseReference)

Source from the content-addressed store, hash-verified

369export class Reference extends Query implements IReference {
370 _native: com.google.firebase.database.DatabaseReference;
371 static fromNative(ref: com.google.firebase.database.DatabaseReference) {
372 if (ref instanceof com.google.firebase.database.DatabaseReference) {
373 const reference = new Reference();
374 reference._native = ref;
375 return reference;
376 }
377 return null;
378 }
379
380 get key(): string {
381 return this.native.getKey();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected