setData

inline fun <T> DatabaseReference.setData(value: T): <Error class: unknown class><Nothing?>(source)

Writes value, a plain value or a @Serializable class, to this location (see DatabaseReference.setValue). The value is mapped by the format with its static type, so a generic class maps too; an Any maps by its runtime type.


Writes value (see setData) and calls listener with the outcome.


inline fun <T> DatabaseReference.setData(value: T, priority: Any?): <Error class: unknown class><Nothing?>(source)

Writes value (see setData) with priority.


inline fun <T> DatabaseReference.setData(value: T, priority: Any?, listener: DatabaseReference.CompletionListener?)(source)

Writes value (see setData) with priority and calls listener with the outcome.


inline fun <T> OnDisconnect.setData(value: T): <Error class: unknown class><Nothing?>(source)

Writes value, a plain value or a @Serializable class mapped by the format, when the client disconnects (see OnDisconnect.setValue).


Writes value on disconnect (see setData) and calls listener with the outcome.


inline fun <T> OnDisconnect.setData(value: T, priority: String?): <Error class: unknown class><Nothing?>(source)
inline fun <T> OnDisconnect.setData(value: T, priority: Double): <Error class: unknown class><Nothing?>(source)

Writes value on disconnect (see setData) with priority.


inline fun <T> OnDisconnect.setData(value: T, priority: String?, listener: DatabaseReference.CompletionListener?)(source)
inline fun <T> OnDisconnect.setData(value: T, priority: Double, listener: DatabaseReference.CompletionListener?)(source)
inline fun <T> OnDisconnect.setData(value: T, priority: Map<*, *>?, listener: DatabaseReference.CompletionListener?)(source)

Writes value on disconnect (see setData) with priority and calls listener with the outcome.


inline fun <T> MutableData.setData(value: T)(source)

Replaces the data of the transaction with value, a plain value or a @Serializable class mapped by the format (see MutableData.value).