MutableData

actual class MutableData(source)

The data of a location inside a transaction, as the Android SDK's MutableData: value is read and then set to the new data before the Transaction.Handler returns Transaction.success.

actual class MutableData(source)
expect class MutableData(source)

The data of a location inside a transaction, as the Android SDK's MutableData: value is read and then set to the new data before the Transaction.Handler returns Transaction.success.

actual class MutableData(source)

The data of a transaction as a JS value tree: the JS SDK's transaction receives the current value and returns the new one, so root holds the value being edited and each child refers to a path in it.

actual class MutableData(source)

The data of a transaction as a JS value tree: the JS SDK's transaction receives the current value and returns the new one, so root holds the value being edited and each child refers to a path in it.

Properties

Link copied to clipboard

The children of this location.

The children of this location.

The children of this location.

The children of this location.

The children of this location.

Link copied to clipboard
actual val childrenCount: Long

The number of children.

actual val childrenCount: Long

The number of children.

expect val childrenCount: Long

The number of children.

actual val childrenCount: Long

The number of children.

actual val childrenCount: Long

The number of children.

Link copied to clipboard
val ios: FIRMutableData

The underlying Firebase iOS SDK object.

Link copied to clipboard
actual val key: String?

The last segment of the path, or null at the root.

actual val key: String?

The last segment of the path, or null at the root.

expect val key: String?

The last segment of the path, or null at the root.

actual val key: String?

The last segment of the path, or null at the root.

actual val key: String?

The last segment of the path, or null at the root.

Link copied to clipboard
actual var priority: Any?

The priority of the location; setting it changes the priority written by the transaction.

actual var priority: Any?

The priority of the location; setting it changes the priority written by the transaction.

expect var priority: Any?

The priority of the location; setting it changes the priority written by the transaction.

actual var priority: Any?

The JS SDK writes a priority through a { ".value": ..., ".priority": ... } value.

actual var priority: Any?

The JS SDK writes a priority through a { ".value": ..., ".priority": ... } value.

Link copied to clipboard
actual var value: Any?

The current data as its natural type (see DataSnapshot); setting it replaces the data of the transaction.

actual var value: Any?

The current data as its natural type (see DataSnapshot); setting it replaces the data of the transaction.

expect var value: Any?

The current data as its natural type (see DataSnapshot); setting it replaces the data of the transaction.

actual var value: Any?

The current data as its natural type (see DataSnapshot); setting it replaces the data of the transaction.

actual var value: Any?

The current data as its natural type (see DataSnapshot); setting it replaces the data of the transaction.

Functions

Link copied to clipboard
actual fun child(path: String): MutableData

The data of path under this location; changes to it are part of the transaction.

actual fun child(path: String): MutableData

The data of path under this location; changes to it are part of the transaction.

expect fun child(path: String): MutableData

The data of path under this location; changes to it are part of the transaction.

actual fun child(path: String): MutableData

The data of path under this location; changes to it are part of the transaction.

actual fun child(path: String): MutableData

The data of path under this location; changes to it are part of the transaction.

Link copied to clipboard
actual fun <T> getValue(t: GenericTypeIndicator<T>): T?

The data as T; on Apple platforms and JS a cast of value.

actual fun <T> getValue(t: GenericTypeIndicator<T>): T?

The data as T; on Apple platforms and JS a cast of value.

expect fun <T> getValue(t: GenericTypeIndicator<T>): T?

The data as T; on Apple platforms and JS a cast of value.

actual fun <T> getValue(t: GenericTypeIndicator<T>): T?

The data as T; on Apple platforms and JS a cast of value.

actual fun <T> getValue(t: GenericTypeIndicator<T>): T?

The data as T; on Apple platforms and JS a cast of value.

Link copied to clipboard
inline fun <T> MutableData.getValue(): T?

The data as T, as the Android SDK's reified getValue; on Apple platforms and JS a cast of MutableData.value.

Link copied to clipboard
actual fun hasChild(path: String): Boolean

Whether there is data at path under this location.

actual fun hasChild(path: String): Boolean

Whether there is data at path under this location.

expect fun hasChild(path: String): Boolean

Whether there is data at path under this location.

actual fun hasChild(path: String): Boolean

Whether there is data at path under this location.

actual fun hasChild(path: String): Boolean

Whether there is data at path under this location.

Link copied to clipboard
actual fun hasChildren(): Boolean

Whether the location has children.

actual fun hasChildren(): Boolean

Whether the location has children.

expect fun hasChildren(): Boolean

Whether the location has children.

actual fun hasChildren(): Boolean

Whether the location has children.

actual fun hasChildren(): Boolean

Whether the location has children.

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String