ChildEvent.Added
public final data class ChildEvent.Added extends ChildEvent
| java.lang.Object | ||
| ↳ | com.google.firebase.database.ChildEvent | |
| ↳ | com.google.firebase.database.ChildEvent.Added |
Emitted when a new child is added to the location.
Summary
Public fields |
|
|---|---|
final String |
The key name of sibling location ordered before the new child. |
final @NonNull DataSnapshot |
An immutable snapshot of the data at the new child location |
Public constructors |
|---|
Added(@NonNull DataSnapshot snapshot, String previousChildName) |
Public fields
previousChildName
public final String previousChildName
The key name of sibling location ordered before the new child. This
will be null for the first child node of a location.
snapshot
public final @NonNull DataSnapshot snapshot
An immutable snapshot of the data at the new child location
Public constructors
Added
public Added(@NonNull DataSnapshot snapshot, String previousChildName)
| Parameters | |
|---|---|
@NonNull DataSnapshot snapshot |
An immutable snapshot of the data at the new child location |
String previousChildName |
The key name of sibling location ordered before the new child. This will be null for the first child node of a location. |