ChildEvent.Moved

public final data class ChildEvent.Moved extends ChildEvent


Emitted when a child location's priority changes.

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 fields

final String

The key name of the sibling location ordered before the child

final @NonNull DataSnapshot

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

Public constructors

Moved(@NonNull DataSnapshot 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 @NonNull DataSnapshot snapshot

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

Public constructors

Moved

public Moved(@NonNull DataSnapshot snapshot, String previousChildName)
Parameters
@NonNull DataSnapshot 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.