Properties | |
---|---|
ChildAdded | EventHandler< ChildChangedEventArgs > Event raised when children nodes are added relative to this location. |
ChildChanged | EventHandler< ChildChangedEventArgs > Event raised when children nodes are changed relative to this location. |
ChildMoved | EventHandler< ChildChangedEventArgs > Event raised when children nodes are moved relative to this location. |
ChildRemoved | EventHandler< ChildChangedEventArgs > Event raised when children nodes are removed relative to this location. |
Reference | A DatabaseReference to this location |
ValueChanged | EventHandler< ValueChangedEventArgs > Event for changes in the data at this location. |
Public functions | |
---|---|
EndAt(string value) | Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default. |
EndAt(double value) | Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default. |
EndAt(bool value) | Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default. |
EndAt(string value, string key) | Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key key less than or equal to the given key. |
EndAt(double value, string key) | Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key less than or equal to the given key. |
EndAt(bool value, string key) | Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key less than or equal to the given key. |
EqualTo(string value) | Create a query constrained to only return child nodes with the given value |
EqualTo(double value) | Create a query constrained to only return child nodes with the given value |
EqualTo(bool value) | Create a query constrained to only return child nodes with the given value. |
EqualTo(string value, string key) | Create a query constrained to only return the child node with the given key and value. |
EqualTo(double value, string key) | Create a query constrained to only return the child node with the given key and value. |
EqualTo(bool value, string key) | Create a query constrained to only return the child node with the given key and value. |
GetValueAsync() | Task< DataSnapshot > |
KeepSynced(bool keepSynced) | void By calling keepSynced(true) on a location, the data for that location will automatically be downloaded and kept in sync, even when no listeners are attached for that location. |
LimitToFirst(int limit) | Create a query with limit and anchor it to the start of the window |
LimitToLast(int limit) | Create a query with limit and anchor it to the end of the window |
OrderByChild(string path) | Create a query in which child nodes are ordered by the values of the specified path. |
OrderByKey() | Create a query in which child nodes are ordered by their keys. |
OrderByPriority() | Create a query in which child nodes are ordered by their priorities. |
OrderByValue() | Create a query in which nodes are ordered by their value |
StartAt(string value) | Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default. |
StartAt(double value) | Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default. |
StartAt(bool value) | Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default. |
StartAt(string value, string key) | Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key greater than or equal to the given key. |
StartAt(double value, string key) | Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key greater than or equal to the given key. |
StartAt(bool value, string key) | Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key greater than or equal to the given key. |
EventHandler<ChildChangedEventArgs>ChildAdded
Event raised when children nodes are added relative to this location.
Register a handler to observe when children are added relative to this Query object. Each time time children nodes are added, your handler will be called with an immutable snapshot of the data.
EventHandler<ChildChangedEventArgs>ChildChanged
Event raised when children nodes are changed relative to this location.
Register a handler to observe changes to children relative to this Query object. Each time time children nodes are changed, your handler will be called with an immutable snapshot of the data.
EventHandler<ChildChangedEventArgs>ChildMoved
Event raised when children nodes are moved relative to this location.
Register a handler to observe when children are moved relative to this Query object. Each time time children nodes are moved, your handler will be called with an immutable snapshot of the data.
EventHandler<ChildChangedEventArgs>ChildRemoved
Event raised when children nodes are removed relative to this location.
Register a handler to observe when children are removed relative to this Query object. Each time time children nodes are removed, your handler will be called with an immutable snapshot of the data.
EventHandler<ValueChangedEventArgs>ValueChanged
Event for changes in the data at this location.
Register a handler to observe changes at the location of this Query object. Each time time the data changes, your handler will be called with an immutable snapshot of the data.
QueryEndAt(stringvalue)
Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Query with the new constraint |
QueryEndAt(doublevalue)
Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Query with the new constraint |
QueryEndAt(boolvalue)
Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Query with the new constraint |
QueryEndAt(stringvalue,stringkey)
Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key key less than or equal to the given key.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns | A Query with the new constraint |
QueryEndAt(doublevalue,stringkey)
Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key less than or equal to the given key.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns | A Query with the new constraint |
QueryEndAt(boolvalue,stringkey)
Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key less than or equal to the given key.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns | A Query with the new constraint |
QueryEqualTo(stringvalue)
Create a query constrained to only return child nodes with the given value
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A query with the new constraint |
QueryEqualTo(doublevalue)
Create a query constrained to only return child nodes with the given value
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A query with the new constraint |
QueryEqualTo(boolvalue)
Create a query constrained to only return child nodes with the given value.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A query with the new constraint |
QueryEqualTo(stringvalue,stringkey)
Create a query constrained to only return the child node with the given key and value.
Create a query constrained to only return the child node with the given key and value. Note that there is at most one such child as names are unique.
Known issue This currently does not work properly on iOS and tvOS. Please use EqualTo(string value) instead.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns | A query with the new constraint |
QueryEqualTo(doublevalue,stringkey)
Create a query constrained to only return the child node with the given key and value.
Create a query constrained to only return the child node with the given key and value. Note that there is at most one such child as keys are unique.
Known issue This currently does not work properly on iOS and tvOS. Please use EqualTo(double value) instead.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns | A query with the new constraint |
QueryEqualTo(boolvalue,stringkey)
Create a query constrained to only return the child node with the given key and value.
Create a query constrained to only return the child node with the given key and value. Note that there is at most one such child as keys are unique.
Known issue This currently does not work properly on iOS and tvOS. Please use EqualTo(bool value) instead.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns | A query with the new constraint |
Task<DataSnapshot>GetValueAsync()
voidKeepSynced(boolkeepSynced)
By calling keepSynced(true)
on a location, the data for that location will automatically be downloaded and kept in sync, even when no listeners are attached for that location.
By calling keepSynced(true)
on a location, the data for that location will automatically be downloaded and kept in sync, even when no listeners are attached for that location.
Details | |||
---|---|---|---|
Parameters |
|
QueryLimitToFirst(intlimit)
Create a query with limit and anchor it to the start of the window
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Query with the new constraint |
QueryLimitToLast(intlimit)
Create a query with limit and anchor it to the end of the window
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Query with the new constraint |
QueryOrderByChild(stringpath)
Create a query in which child nodes are ordered by the values of the specified path.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Query with the new constraint |
QueryOrderByKey()
Create a query in which child nodes are ordered by their keys.
Details | |
---|---|
Returns | A Query with the new constraint |
QueryOrderByPriority()
Create a query in which child nodes are ordered by their priorities.
Details | |
---|---|
Returns | A Query with the new constraint |
QueryOrderByValue()
Create a query in which nodes are ordered by their value
Details | |
---|---|
Returns | A Query with the new constraint |
QueryStartAt(stringvalue)
Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Query with the new constraint |
QueryStartAt(doublevalue)
Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Query with the new constraint |
QueryStartAt(boolvalue)
Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Query with the new constraint |
QueryStartAt(stringvalue,stringkey)
Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key greater than or equal to the given key.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns | A Query with the new constraint |
QueryStartAt(doublevalue,stringkey)
Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key greater than or equal to the given key.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns | A Query with the new constraint |
QueryStartAt(boolvalue,stringkey)
Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default, and additionally only child nodes with a key greater than or equal to the given key.
Details | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns | A Query with the new constraint |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-01-26 UTC.