ChildEvent.Moved

public final data classChildEvent.Moved extendsChildEvent


Emitted when a child location's priority changes.

Summary

Public fields

finalString

The key name of the sibling location ordered before the child

final @NonNullDataSnapshot

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

Public constructors

Moved(@NonNullDataSnapshot snapshot, String previousChildName)

Public fields

previousChildName

public final String previousChildName

The key name of the sibling location ordered before the child

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

snapshot

public final @NonNullDataSnapshot snapshot

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

Public constructors

Moved

public Moved(@NonNullDataSnapshot snapshot, String previousChildName)
Parameters
@NonNullDataSnapshot snapshot

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

String previousChildName

The key name of the sibling location ordered before the child

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

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.