ChildEvent.Added

data classChildEvent.Added :ChildEvent


Emitted when a new child is added to the location.

Summary

Public constructors

Added(snapshot: DataSnapshot, previousChildName: String?)

Public properties

String?

The key name of sibling location ordered before the new child.

DataSnapshot

An immutable snapshot of the data at the new child location

Public constructors

Added

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

An immutable snapshot of the data at the new child location

previousChildName: String?

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

willbenullforthefirstchildnodeofalocation.

Public properties

previousChildName

val previousChildNameString?

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

willbenullforthefirstchildnodeofalocation.

snapshot

val snapshotDataSnapshot

An immutable snapshot of the data at the new child 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.