FirebaseDatabase

actual class FirebaseDatabase(source)
actual class FirebaseDatabase(source)
expect class FirebaseDatabase(source)

The entry point of the Realtime Database, as the Android SDK's com.google.firebase.database.FirebaseDatabase. Persistence settings are accepted on every platform (the JS SDK has no disk persistence, so they are ignored there).

actual class FirebaseDatabase(source)
actual class FirebaseDatabase(source)
actual class FirebaseDatabase(source)

Types

Link copied to clipboard
actual object Companion
actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard
actual val app: <Error class: unknown class>
actual val app: <Error class: unknown class>
expect val app: <Error class: unknown class>

The FirebaseApp this instance belongs to.

actual val app: <Error class: unknown class>
actual val app: <Error class: unknown class>
actual val app: <Error class: unknown class>
Link copied to clipboard
val ios: <Error class: unknown class>

The underlying Firebase iOS SDK object.

Link copied to clipboard

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK object.

Link copied to clipboard

A reference to the root of the database.

Functions

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

A reference to path.

Link copied to clipboard

A reference to the location of url, which must be in this database.

Link copied to clipboard
actual fun goOffline()
actual fun goOffline()
expect fun goOffline()

Disconnects from the backend until goOnline.

actual fun goOffline()
actual fun goOffline()
actual fun goOffline()
Link copied to clipboard
actual fun goOnline()
actual fun goOnline()
expect fun goOnline()

Reconnects to the backend after goOffline.

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

Rolls back every outstanding write, raising the events of the reverted data.

No-op: the JS SDK has no write queue to purge.

A no-op: the JS SDK has no write queue to purge.

Link copied to clipboard
actual fun setLogLevel(logLevel: Logger.Level)
actual fun setLogLevel(logLevel: <Error class: unknown class>)

The iOS SDK only has a switch: Logger.Level.DEBUG enables its logging, every other level disables it.

expect fun setLogLevel(logLevel: Logger.Level)

Sets the log level of the SDK.

actual fun setLogLevel(logLevel: <Error class: unknown class>)

The JS SDK only has a switch: Logger.Level.DEBUG enables its logging, every other level disables it.

actual fun setLogLevel(logLevel: Logger.Level)
actual fun setLogLevel(logLevel: <Error class: unknown class>)

The JS SDK only has a switch: Logger.Level.DEBUG enables its logging, every other level disables it.

Link copied to clipboard
actual fun setPersistenceCacheSizeBytes(cacheSizeInBytes: Long)
actual fun setPersistenceCacheSizeBytes(cacheSizeInBytes: Long)
expect fun setPersistenceCacheSizeBytes(cacheSizeInBytes: Long)

Sets the size of the on-disk cache in bytes; must be called before the first reference is created.

actual fun setPersistenceCacheSizeBytes(cacheSizeInBytes: Long)

No-op: the JS SDK has no disk persistence.

actual fun setPersistenceCacheSizeBytes(cacheSizeInBytes: Long)
actual fun setPersistenceCacheSizeBytes(cacheSizeInBytes: Long)

A no-op: the JS SDK has no disk persistence.

Link copied to clipboard
actual fun setPersistenceEnabled(isEnabled: Boolean)
actual fun setPersistenceEnabled(isEnabled: Boolean)
expect fun setPersistenceEnabled(isEnabled: Boolean)

Enables or disables persisting synchronized data to disk; must be called before the first reference is created.

actual fun setPersistenceEnabled(isEnabled: Boolean)

No-op: the JS SDK has no disk persistence.

actual fun setPersistenceEnabled(isEnabled: Boolean)
actual fun setPersistenceEnabled(isEnabled: Boolean)

A no-op: the JS SDK has no disk persistence.

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

Routes requests to the Realtime Database emulator at host:port; must be called before any other operation.

actual fun useEmulator(host: String, port: Int)
actual fun useEmulator(host: String, port: Int)
actual fun useEmulator(host: String, port: Int)