ChildEvent.Changed

public final data classChildEvent.Changed extendsChildEvent


Emitted when the data at a child location has changed.

Summary

Public fields

finalString

The key name of sibling location ordered before the child.

final @NonNullDataSnapshot

An immutable snapshot of the data at the new data at the child location

Public constructors

Changed(@NonNullDataSnapshot snapshot, String previousChildName)

Public fields

previousChildName

public final String previousChildName

The key name of sibling location ordered before the child. This will

    be null for the first child node of a location.

snapshot

public final @NonNullDataSnapshot snapshot

An immutable snapshot of the data at the new data at the child location

Public constructors

Changed

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

An immutable snapshot of the data at the new data at the child location

String previousChildName

The key name of sibling location ordered before the child. This will

    be null for the first child node of a location.

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.