FirebaseDatabase

actual 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)
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)

Types

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

Properties

Link copied to clipboard
actual val app: FirebaseApp

The FirebaseApp this instance belongs to.

actual val app: FirebaseApp

The FirebaseApp this instance belongs to.

expect val app: FirebaseApp

The FirebaseApp this instance belongs to.

actual val app: FirebaseApp

The FirebaseApp this instance belongs to.

actual val app: FirebaseApp

The FirebaseApp this instance belongs to.

Link copied to clipboard
val ios: FIRDatabase

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.

A reference to the root of the database.

A reference to the root of the database.

A reference to the root of the database.

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.

A reference to path.

A reference to path.

A reference to path.

A reference to path.

Link copied to clipboard

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

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

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

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

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

Link copied to clipboard
actual fun goOffline()

Disconnects from the backend until goOnline.

actual fun goOffline()

Disconnects from the backend until goOnline.

expect fun goOffline()

Disconnects from the backend until goOnline.

actual fun goOffline()

Disconnects from the backend until goOnline.

actual fun goOffline()

Disconnects from the backend until goOnline.

Link copied to clipboard
actual fun goOnline()

Reconnects to the backend after goOffline.

actual fun goOnline()

Reconnects to the backend after goOffline.

expect fun goOnline()

Reconnects to the backend after goOffline.

actual fun goOnline()

Reconnects to the backend after goOffline.

actual fun goOnline()

Reconnects to the backend after goOffline.

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.

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

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

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

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

Link copied to clipboard
actual fun setLogLevel(logLevel: Logger.Level)

Sets the log level of the SDK.

actual fun setLogLevel(logLevel: Logger.Level)

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: Logger.Level)

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

actual fun setLogLevel(logLevel: Logger.Level)

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)

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

actual fun setPersistenceCacheSizeBytes(cacheSizeInBytes: Long)

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

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)

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

Link copied to clipboard
actual 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)

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

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)

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)

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

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

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

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)

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

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

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