ChildEvent.Added

data class ChildEvent.Added : ChildEvent


Emitted when a new child is added to the location.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-database-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

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

    will be null for the first child node of a location.

Public properties

previousChildName

val previousChildNameString?

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

    will be null for the first child node of a location.

snapshot

val snapshotDataSnapshot

An immutable snapshot of the data at the new child location