Query

actual open class Query(source)

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).

Inheritors

actual open class Query(source)

Inheritors

expect open class Query(source)

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).

Inheritors

actual open class Query(source)

Inheritors

actual open class Query(source)

Inheritors

Properties

Link copied to clipboard

The changes to the children of this location as a Flow, which fails if the listener is cancelled.

Link copied to clipboard
open val ios: FIRDatabaseQuery

The underlying Firebase iOS SDK object.

Link copied to clipboard
open val js: Query

The underlying Firebase JS SDK object.

open val js: Query

The underlying Firebase JS SDK object.

Link copied to clipboard

The JS SDK database the query belongs to (the JS SDK does not expose it on the query).

The JS SDK database the query belongs to (the JS SDK does not expose it on the query).

Link copied to clipboard

The reference to the location of this query.

The reference to the location of this query.

The reference to the location of this query.

The reference to the location of this query.

The reference to the location of this query.

Link copied to clipboard

The data at this location and every change to it as a Flow, which fails if the listener is cancelled.

Functions

Link copied to clipboard

Adds listener for the changes to the children of this location; returns it for removeEventListener.

Adds listener for the changes to the children of this location; returns it for removeEventListener.

Adds listener for the changes to the children of this location; returns it for removeEventListener.

Adds listener for the changes to the children of this location; returns it for removeEventListener.

Adds listener for the changes to the children of this location; returns it for removeEventListener.

Link copied to clipboard

Calls listener once with the data at this location.

Calls listener once with the data at this location.

Calls listener once with the data at this location.

Calls listener once with the data at this location.

Calls listener once with the data at this location.

Link copied to clipboard

Adds listener for the data at this location and its changes; returns it for removeEventListener.

Adds listener for the data at this location and its changes; returns it for removeEventListener.

Adds listener for the data at this location and its changes; returns it for removeEventListener.

Adds listener for the data at this location and its changes; returns it for removeEventListener.

Adds listener for the data at this location and its changes; returns it for removeEventListener.

Link copied to clipboard
actual fun endAt(value: Boolean): Query
actual fun endAt(value: Double): Query
actual fun endAt(value: Boolean, key: String?): Query
actual fun endAt(value: Double, key: String?): Query

actual fun endAt(value: String?): Query

Limits the results to the children whose ordered value is at most value.

actual fun endAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at most value, breaking ties by key.

actual fun endAt(value: Boolean): Query
actual fun endAt(value: Double): Query
actual fun endAt(value: Boolean, key: String?): Query
actual fun endAt(value: Double, key: String?): Query

actual fun endAt(value: String?): Query

Limits the results to the children whose ordered value is at most value.

actual fun endAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at most value, breaking ties by key.

expect fun endAt(value: Boolean): Query
expect fun endAt(value: Double): Query
expect fun endAt(value: Boolean, key: String?): Query
expect fun endAt(value: Double, key: String?): Query

expect fun endAt(value: String?): Query

Limits the results to the children whose ordered value is at most value.

expect fun endAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at most value, breaking ties by key.

actual fun endAt(value: Boolean): Query
actual fun endAt(value: Double): Query
actual fun endAt(value: Boolean, key: String?): Query
actual fun endAt(value: Double, key: String?): Query

actual fun endAt(value: String?): Query

Limits the results to the children whose ordered value is at most value.

actual fun endAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at most value, breaking ties by key.

actual fun endAt(value: Boolean): Query
actual fun endAt(value: Double): Query
actual fun endAt(value: Boolean, key: String?): Query
actual fun endAt(value: Double, key: String?): Query

actual fun endAt(value: String?): Query

Limits the results to the children whose ordered value is at most value.

actual fun endAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at most value, breaking ties by key.

Link copied to clipboard
actual fun endBefore(value: Boolean): Query
actual fun endBefore(value: Double): Query
actual fun endBefore(value: Boolean, key: String?): Query
actual fun endBefore(value: Double, key: String?): Query

actual fun endBefore(value: String?): Query

Limits the results to the children whose ordered value is less than value.

actual fun endBefore(value: String?, key: String?): Query

Limits the results to the children whose ordered value is less than value, breaking ties by key.

actual fun endBefore(value: Boolean): Query
actual fun endBefore(value: Double): Query
actual fun endBefore(value: Boolean, key: String?): Query
actual fun endBefore(value: Double, key: String?): Query

actual fun endBefore(value: String?): Query

Limits the results to the children whose ordered value is less than value.

actual fun endBefore(value: String?, key: String?): Query

Limits the results to the children whose ordered value is less than value, breaking ties by key.

expect fun endBefore(value: Boolean): Query
expect fun endBefore(value: Double): Query
expect fun endBefore(value: Boolean, key: String?): Query
expect fun endBefore(value: Double, key: String?): Query

expect fun endBefore(value: String?): Query

Limits the results to the children whose ordered value is less than value.

expect fun endBefore(value: String?, key: String?): Query

Limits the results to the children whose ordered value is less than value, breaking ties by key.

actual fun endBefore(value: Boolean): Query
actual fun endBefore(value: Double): Query
actual fun endBefore(value: Boolean, key: String?): Query
actual fun endBefore(value: Double, key: String?): Query

actual fun endBefore(value: String?): Query

Limits the results to the children whose ordered value is less than value.

actual fun endBefore(value: String?, key: String?): Query

Limits the results to the children whose ordered value is less than value, breaking ties by key.

actual fun endBefore(value: Boolean): Query
actual fun endBefore(value: Double): Query
actual fun endBefore(value: Boolean, key: String?): Query
actual fun endBefore(value: Double, key: String?): Query

actual fun endBefore(value: String?): Query

Limits the results to the children whose ordered value is less than value.

actual fun endBefore(value: String?, key: String?): Query

Limits the results to the children whose ordered value is less than value, breaking ties by key.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

The iOS SDK creates a new object per call, so queries are equal when they describe the same location and constraints.

open operator override fun equals(other: Any?): Boolean

The JS SDK creates a new object per call, so queries are equal when they are of the same location and constraints.

open operator override fun equals(other: Any?): Boolean

The JS SDK creates a new object per call, so queries are equal when they are of the same location and constraints.

Link copied to clipboard
actual fun equalTo(value: Boolean): Query
actual fun equalTo(value: Double): Query
actual fun equalTo(value: Boolean, key: String?): Query
actual fun equalTo(value: Double, key: String?): Query

actual fun equalTo(value: String?): Query

Limits the results to the children whose ordered value equals value.

actual fun equalTo(value: String?, key: String?): Query

Limits the results to the child whose ordered value equals value and whose key is key.

actual fun equalTo(value: Boolean): Query
actual fun equalTo(value: Double): Query
actual fun equalTo(value: Boolean, key: String?): Query
actual fun equalTo(value: Double, key: String?): Query

actual fun equalTo(value: String?): Query

Limits the results to the children whose ordered value equals value.

actual fun equalTo(value: String?, key: String?): Query

Limits the results to the child whose ordered value equals value and whose key is key.

expect fun equalTo(value: Boolean): Query
expect fun equalTo(value: Double): Query
expect fun equalTo(value: Boolean, key: String?): Query
expect fun equalTo(value: Double, key: String?): Query

expect fun equalTo(value: String?): Query

Limits the results to the children whose ordered value equals value.

expect fun equalTo(value: String?, key: String?): Query

Limits the results to the child whose ordered value equals value and whose key is key.

actual fun equalTo(value: Boolean): Query
actual fun equalTo(value: Double): Query
actual fun equalTo(value: Boolean, key: String?): Query
actual fun equalTo(value: Double, key: String?): Query

actual fun equalTo(value: String?): Query

Limits the results to the children whose ordered value equals value.

actual fun equalTo(value: String?, key: String?): Query

Limits the results to the child whose ordered value equals value and whose key is key.

actual fun equalTo(value: Boolean): Query
actual fun equalTo(value: Double): Query
actual fun equalTo(value: Boolean, key: String?): Query
actual fun equalTo(value: Double, key: String?): Query

actual fun equalTo(value: String?): Query

Limits the results to the children whose ordered value equals value.

actual fun equalTo(value: String?, key: String?): Query

Limits the results to the child whose ordered value equals value and whose key is key.

Link copied to clipboard
actual fun get(): Task<DataSnapshot>

Reads the data at this location from the server, falling back to the cache when offline.

actual fun get(): Task<DataSnapshot>

Reads the data at this location from the server, falling back to the cache when offline.

expect fun get(): Task<DataSnapshot>

Reads the data at this location from the server, falling back to the cache when offline.

actual fun get(): Task<DataSnapshot>

Reads the data at this location from the server, falling back to the cache when offline.

actual fun get(): Task<DataSnapshot>

Reads the data at this location from the server, falling back to the cache when offline.

Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
actual fun keepSynced(keepSynced: Boolean)

Keeps the data of this query synchronized in the persistent cache, even while it has no listener. A no-op on JS, whose SDK has no persistent cache.

actual fun keepSynced(keepSynced: Boolean)

Keeps the data of this query synchronized in the persistent cache, even while it has no listener. A no-op on JS, whose SDK has no persistent cache.

expect fun keepSynced(keepSynced: Boolean)

Keeps the data of this query synchronized in the persistent cache, even while it has no listener. A no-op on JS, whose SDK has no persistent cache.

actual fun keepSynced(keepSynced: Boolean)

A no-op: the JS SDK has no persistent cache to keep a query synchronized in.

actual fun keepSynced(keepSynced: Boolean)

A no-op: the JS SDK has no persistent cache to keep a query synchronized in.

Link copied to clipboard
actual fun limitToFirst(limit: Int): Query

Limits the results to the first limit children.

actual fun limitToFirst(limit: Int): Query

Limits the results to the first limit children.

expect fun limitToFirst(limit: Int): Query

Limits the results to the first limit children.

actual fun limitToFirst(limit: Int): Query

Limits the results to the first limit children.

actual fun limitToFirst(limit: Int): Query

Limits the results to the first limit children.

Link copied to clipboard
actual fun limitToLast(limit: Int): Query

Limits the results to the last limit children.

actual fun limitToLast(limit: Int): Query

Limits the results to the last limit children.

expect fun limitToLast(limit: Int): Query

Limits the results to the last limit children.

actual fun limitToLast(limit: Int): Query

Limits the results to the last limit children.

actual fun limitToLast(limit: Int): Query

Limits the results to the last limit children.

Link copied to clipboard
actual fun orderByChild(path: String): Query

Orders the children by the value at path within each of them.

actual fun orderByChild(path: String): Query

Orders the children by the value at path within each of them.

expect fun orderByChild(path: String): Query

Orders the children by the value at path within each of them.

actual fun orderByChild(path: String): Query

Orders the children by the value at path within each of them.

actual fun orderByChild(path: String): Query

Orders the children by the value at path within each of them.

Link copied to clipboard
actual fun orderByKey(): Query

Orders the children by their keys.

actual fun orderByKey(): Query

Orders the children by their keys.

expect fun orderByKey(): Query

Orders the children by their keys.

actual fun orderByKey(): Query

Orders the children by their keys.

actual fun orderByKey(): Query

Orders the children by their keys.

Link copied to clipboard
actual fun orderByPriority(): Query

Orders the children by their priorities.

actual fun orderByPriority(): Query

Orders the children by their priorities.

expect fun orderByPriority(): Query

Orders the children by their priorities.

actual fun orderByPriority(): Query

Orders the children by their priorities.

actual fun orderByPriority(): Query

Orders the children by their priorities.

Link copied to clipboard
actual fun orderByValue(): Query

Orders the children by their values.

actual fun orderByValue(): Query

Orders the children by their values.

expect fun orderByValue(): Query

Orders the children by their values.

actual fun orderByValue(): Query

Orders the children by their values.

actual fun orderByValue(): Query

Orders the children by their values.

Link copied to clipboard

Removes a listener added with addChildEventListener.

Removes a listener added with addValueEventListener.

Removes a listener added with addChildEventListener.

Removes a listener added with addValueEventListener.

Removes a listener added with addChildEventListener.

Removes a listener added with addValueEventListener.

Removes a listener added with addChildEventListener.

Removes a listener added with addValueEventListener.

Removes a listener added with addChildEventListener.

Removes a listener added with addValueEventListener.

Link copied to clipboard
actual fun startAfter(value: Boolean): Query
actual fun startAfter(value: Double): Query
actual fun startAfter(value: Boolean, key: String?): Query
actual fun startAfter(value: Double, key: String?): Query

actual fun startAfter(value: String?): Query

Limits the results to the children whose ordered value is greater than value.

actual fun startAfter(value: String?, key: String?): Query

Limits the results to the children whose ordered value is greater than value, breaking ties by key.

actual fun startAfter(value: Boolean): Query
actual fun startAfter(value: Double): Query
actual fun startAfter(value: Boolean, key: String?): Query
actual fun startAfter(value: Double, key: String?): Query

actual fun startAfter(value: String?): Query

Limits the results to the children whose ordered value is greater than value.

actual fun startAfter(value: String?, key: String?): Query

Limits the results to the children whose ordered value is greater than value, breaking ties by key.

expect fun startAfter(value: Boolean): Query
expect fun startAfter(value: Double): Query
expect fun startAfter(value: Boolean, key: String?): Query
expect fun startAfter(value: Double, key: String?): Query

expect fun startAfter(value: String?): Query

Limits the results to the children whose ordered value is greater than value.

expect fun startAfter(value: String?, key: String?): Query

Limits the results to the children whose ordered value is greater than value, breaking ties by key.

actual fun startAfter(value: Boolean): Query
actual fun startAfter(value: Double): Query
actual fun startAfter(value: Boolean, key: String?): Query
actual fun startAfter(value: Double, key: String?): Query

actual fun startAfter(value: String?): Query

Limits the results to the children whose ordered value is greater than value.

actual fun startAfter(value: String?, key: String?): Query

Limits the results to the children whose ordered value is greater than value, breaking ties by key.

actual fun startAfter(value: Boolean): Query
actual fun startAfter(value: Double): Query
actual fun startAfter(value: Boolean, key: String?): Query
actual fun startAfter(value: Double, key: String?): Query

actual fun startAfter(value: String?): Query

Limits the results to the children whose ordered value is greater than value.

actual fun startAfter(value: String?, key: String?): Query

Limits the results to the children whose ordered value is greater than value, breaking ties by key.

Link copied to clipboard
actual fun startAt(value: Boolean): Query
actual fun startAt(value: Double): Query
actual fun startAt(value: Boolean, key: String?): Query
actual fun startAt(value: Double, key: String?): Query

actual fun startAt(value: String?): Query

Limits the results to the children whose ordered value is at least value.

actual fun startAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at least value, breaking ties by key.

actual fun startAt(value: Boolean): Query
actual fun startAt(value: Double): Query
actual fun startAt(value: Boolean, key: String?): Query
actual fun startAt(value: Double, key: String?): Query

actual fun startAt(value: String?): Query

Limits the results to the children whose ordered value is at least value.

actual fun startAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at least value, breaking ties by key.

expect fun startAt(value: Boolean): Query
expect fun startAt(value: Double): Query
expect fun startAt(value: Boolean, key: String?): Query
expect fun startAt(value: Double, key: String?): Query

expect fun startAt(value: String?): Query

Limits the results to the children whose ordered value is at least value.

expect fun startAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at least value, breaking ties by key.

actual fun startAt(value: Boolean): Query
actual fun startAt(value: Double): Query
actual fun startAt(value: Boolean, key: String?): Query
actual fun startAt(value: Double, key: String?): Query

actual fun startAt(value: String?): Query

Limits the results to the children whose ordered value is at least value.

actual fun startAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at least value, breaking ties by key.

actual fun startAt(value: Boolean): Query
actual fun startAt(value: Double): Query
actual fun startAt(value: Boolean, key: String?): Query
actual fun startAt(value: Double, key: String?): Query

actual fun startAt(value: String?): Query

Limits the results to the children whose ordered value is at least value.

actual fun startAt(value: String?, key: String?): Query

Limits the results to the children whose ordered value is at least value, breaking ties by key.

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
Link copied to clipboard
inline fun <T> Query.values(): Flow<T?>

The data at this location and every change to it as T (see getValue).