StartAt

class StartAt(val startKey: String, val limit: Int? = null) : Constraint

limit children from startKey: the values of data nodes sent by subscriptions will be limited to the first limit child nodes (or all child nodes if limit is not set) of the actual data nodes whose keys are greater than or equal startKey.

Child nodes are ordered with respect to their keys in a dedicated lexicographic order. For example, if the actual data node to send is {a:9, b:8, c:7}, the StartAt("abc", 1) constraint will send {a:9} to notification targets.

Constructors

Link copied to clipboard
fun StartAt(startKey: String, limit: Int? = null)

Properties

Link copied to clipboard
val limit: Int? = null

If set, maximum number of children that can be sent by subscriptions from the given startKey.

Link copied to clipboard
val startKey: String

Key that is lower than or equals (following the lexicographic order) the key of the first child that can be sent by subscriptions.