ChildEvent.Moved

data class ChildEvent.Moved : ChildEvent


Emitted when a child location's priority changes.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-database-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Summary

Public constructors

Moved(snapshot: DataSnapshot, previousChildName: String?)

Public properties

String?

The key name of the sibling location ordered before the child

DataSnapshot

An immutable snapshot of the data at the location that moved.

Public constructors

Moved

Moved(snapshot: DataSnapshot, previousChildName: String?)
Parameters
snapshot: DataSnapshot

An immutable snapshot of the data at the location that moved.

previousChildName: String?

The key name of the sibling location ordered before the child

    location. This will be null if this location is ordered first.

Public properties

previousChildName

val previousChildNameString?

The key name of the sibling location ordered before the child

    location. This will be null if this location is ordered first.

snapshot

val snapshotDataSnapshot

An immutable snapshot of the data at the location that moved.