Package-level declarations
Types
A change to a child of a location, emitted by Query.childEvents.
Receives the changes to the children of a location; see Query.addChildEventListener.
A failed operation or cancelled listener, as the Android SDK's DatabaseError; code is one of the constants.
Thrown when an operation on the database fails, as the Android SDK's DatabaseException.
A location in the database that can be read and written, as the Android SDK's DatabaseReference. Values are the platform's natural types: Map, List, String, Boolean, Long and Double (and the platform SDK's own types on Apple platforms and JS). A @Serializable class is written with the setData and updateData extensions, which map it through FirebaseFormat.Database on every platform; the SDK's setValue and updateChildren, which map a class by reflection on Android, are deprecated with an error towards them.
An immutable copy of the data at a location, as the Android SDK's DataSnapshot. value is the natural type of the data: a Map, a List, a String, a Boolean, a Long, a Double or null. A custom class is read with the reified getValue<T>() extension, which maps a @Serializable class with the Android SDK's rules on every platform; the SDK's reflective getValue(Class) and getValue(GenericTypeIndicator) are deprecated with an error on Android.
The SDK's exclusion annotation; kotlinx.serialization.Transient excludes a property on every platform.
The entry point of the Realtime Database, as the Android SDK's com.google.firebase.database.FirebaseDatabase. Persistence settings are accepted on every platform (the JS SDK has no disk persistence, so they are ignored there).
The Android SDK's GenericTypeIndicator, kept so that its getValue(GenericTypeIndicator) members compile (they are deprecated with an error towards the reified getValue<T>(), which maps through the format on every platform).
The SDK's annotation; com.google.firebase.serialization.IgnoreExtraProperties is read on every platform.
The logging of the Realtime Database, as the Android SDK's Logger; Level is passed to FirebaseDatabase.setLogLevel.
The data of a location inside a transaction, as the Android SDK's MutableData: value is read and then set to the new data before the Transaction.Handler returns Transaction.success.
The data of a transaction as a JS value tree: the JS SDK's transaction receives the current value and returns the new one, so root holds the value being edited and each child refers to a path in it. A node with a priority is held in the SDK's { ".value": data, ".priority": priority } form, which every operation looks through. The tree is read and written through own properties only, so that a path such as __proto__ cannot reach the prototype chain.
The data of a transaction as a JS value tree: the JS SDK's transaction receives the current value and returns the new one, so root holds the value being edited and each child refers to a path in it. A node with a priority is held in the SDK's { ".value": data, ".priority": priority } form, which every operation looks through. The tree is read and written through own properties only, so that a path such as __proto__ cannot reach the prototype chain.
Writes the server applies when this client disconnects, as the Android SDK's OnDisconnect; obtained from DatabaseReference.onDisconnect. Each operation completes once the server has registered it.
The SDK's property name annotation; kotlinx.serialization.SerialName names a property on every platform.
A read of a location with ordering and filtering, as the Android SDK's Query. Listeners are called on the thread the platform SDK delivers events on. keepSynced is in nonJsMain (the JS SDK has no equivalent).
Values the server computes on write, as the Android SDK's ServerValue; each is written like any other value.
The server values as the .sv maps the platform SDKs and the backend understand.
The SDK's annotation; com.google.firebase.serialization.ThrowOnExtraProperties is read on every platform.
A transaction on a location, as the Android SDK's Transaction: Handler.doTransaction returns success or abort.
Receives the data at a location and its changes; see Query.addValueEventListener.
Properties
The changes to the children of this location as a Flow, which fails if the listener is cancelled.
The FirebaseDatabase of the default FirebaseApp; the Android SDK's Firebase.database.
The data at this location and every change to it as a Flow, which fails if the listener is cancelled.
Functions
The FirebaseDatabase of app.
The FirebaseDatabase of the default FirebaseApp at url.
The FirebaseDatabase of app at url.
The SDK's reified getValue, which maps a class by reflection on Android: deprecated with an error towards com.google.firebase.serialization.getValue, which maps through FirebaseFormat.Database on every platform (see DatabaseMapping.kt for why it lives in that package).
The SDK's reified getValue (see DataSnapshot.getValue); deprecated towards com.google.firebase.serialization.getValue.
The SDK's values flow (see DataSnapshot.getValue); deprecated towards com.google.firebase.serialization.values.