ChildEvent.Moved

data classChildEvent.Moved :ChildEvent


Emitted when a child location's priority changes.

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.Thiswillbenullifthislocationisorderedfirst.

Public properties

previousChildName

val previousChildNameString?

The key name of the sibling location ordered before the child

location.Thiswillbenullifthislocationisorderedfirst.

snapshot

val snapshotDataSnapshot

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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.