ChildEvent.Moved

data class ChildEvent.Moved : ChildEvent


Emitted when a child location's priority changes.

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. 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.