DataSnapshot

actual class DataSnapshot(source)

An immutable copy of the data at a location, as the Android SDK's DataSnapshot. value is the natural type of the data: a Map, a List, a String, a Boolean, a Long, a Double or null. Mapping to custom classes through getValue(Class) is Android-only; the GenericTypeIndicator form casts the value on the other platforms.

actual class DataSnapshot(source)
expect class DataSnapshot(source)

An immutable copy of the data at a location, as the Android SDK's DataSnapshot. value is the natural type of the data: a Map, a List, a String, a Boolean, a Long, a Double or null. Mapping to custom classes through getValue(Class) is Android-only; the GenericTypeIndicator form casts the value on the other platforms.

actual class DataSnapshot(source)
actual class DataSnapshot(source)

Properties

Link copied to clipboard

The snapshots of the children, in query order.

The snapshots of the children, in query order.

The snapshots of the children, in query order.

The snapshots of the children, in query order.

The snapshots of the children, in query order.

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

The JS SDK database the snapshot belongs to.

The JS SDK database the snapshot belongs to.

Link copied to clipboard
val ios: FIRDataSnapshot

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
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 val priority: Any?

The priority of the location: a String, a Double or null.

actual val priority: Any?

The priority of the location: a String, a Double or null.

expect val priority: Any?

The priority of the location: a String, a Double or null.

actual val priority: Any?

The priority of the location: a String, a Double or null.

actual val priority: Any?

The priority of the location: a String, a Double or null.

Link copied to clipboard

The reference to the location of this snapshot.

The reference to the location of this snapshot.

The reference to the location of this snapshot.

The reference to the location of this snapshot.

The reference to the location of this snapshot.

Link copied to clipboard
actual val value: Any?

The data at the location as its natural type, or null.

actual val value: Any?

The data at the location as its natural type, or null.

expect val value: Any?

The data at the location as its natural type, or null.

actual val value: Any?

The data at the location as its natural type, or null.

actual val value: Any?

The data at the location as its natural type, or null.

Functions

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

The snapshot of path under this location.

actual fun child(path: String): DataSnapshot

The snapshot of path under this location.

expect fun child(path: String): DataSnapshot

The snapshot of path under this location.

actual fun child(path: String): DataSnapshot

The snapshot of path under this location.

actual fun child(path: String): DataSnapshot

The snapshot of path under this location.

Link copied to clipboard
actual fun exists(): Boolean

Whether there is data at the location.

actual fun exists(): Boolean

Whether there is data at the location.

expect fun exists(): Boolean

Whether there is data at the location.

actual fun exists(): Boolean

Whether there is data at the location.

actual fun exists(): Boolean

Whether there is data at the location.

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, which maps and lists satisfy.

actual fun getValue(useExportFormat: Boolean): Any?

The data with priorities included (.value / .priority objects) when useExportFormat is true.

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

The data as T; on Apple platforms and JS a cast of value, which maps and lists satisfy.

actual fun getValue(useExportFormat: Boolean): Any?

The data with priorities included (.value / .priority objects) when useExportFormat is true.

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

The data as T; on Apple platforms and JS a cast of value, which maps and lists satisfy.

expect fun getValue(useExportFormat: Boolean): Any?

The data with priorities included (.value / .priority objects) when useExportFormat is true.

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

The data as T; on Apple platforms and JS a cast of value, which maps and lists satisfy.

actual fun getValue(useExportFormat: Boolean): Any?

The data with priorities included (.value / .priority objects) when useExportFormat is true.

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

The data as T; on Apple platforms and JS a cast of value, which maps and lists satisfy.

actual fun getValue(useExportFormat: Boolean): Any?

The data with priorities included (.value / .priority objects) when useExportFormat is true.

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

The data as T, as the Android SDK's reified getValue; on Apple platforms and JS a cast of DataSnapshot.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