FirebaseDatabase

The entry point for accessing a Firebase Database. You can get an instance by calling Firebase.database. To access a location in the database and read or write data, use FirebaseDatabase.reference.

Properties

Link copied to clipboard

The underlying Firebase Android SDK object.

Link copied to clipboard
Link copied to clipboard
val FirebaseDatabase.ios: FIRDatabase

The underlying Firebase iOS SDK object.

Link copied to clipboard

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK object.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun goOffline()

Shuts down our connection to the Firebase Database backend until goOnline is called.

Link copied to clipboard
fun goOnline()

Resumes our connection to the Firebase Database backend after a previous goOffline. call.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Purges all outstanding writes to the Firebase Database server.

Link copied to clipboard

Gets a DatabaseReference for the database root node.

Gets a DatabaseReference for the provided path.

Link copied to clipboard

Enables or disables the SDK's debug logging.

Link copied to clipboard
fun setPersistenceCacheSizeBytes(cacheSizeInBytes: Long)

By default Firebase Database will use up to 10MB of disk space to cache data. If the cache grows beyond this size, Firebase Database will start removing data that hasn't been recently used. If you find that your application caches too little or too much data, call this method to change the cache size. This method must be called before creating your first Database reference and only needs to be called once per application.

Link copied to clipboard

The Firebase Database client will cache synchronized data and keep track of all writes you've initiated while your application is running. It seamlessly handles intermittent network connections and re-sends write operations when the network connection is restored.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun useEmulator(host: String, port: Int)

Modifies this FirebaseDatabase instance to communicate with the Realtime Database emulator.