|
LuxChat
2.0
Instant messenger for iOS
|
#import <FIRMutableData.h>
Instance Methods | |
Inspecting and navigating the data | |
| (BOOL) | - hasChildren |
| (BOOL) | - hasChildAtPath: |
| (FIRMutableData *) | - childDataByAppendingPath: |
Properties | |
Properties | |
| id | value |
| id | priority |
| NSUInteger | childrenCount |
| NSEnumerator * | children |
| NSString * | key |
A FIRMutableData instance is populated with data from a Firebase Database location. When you are using runTransactionBlock:, you will be given an instance containing the current data at that location. Your block will be responsible for updating that instance to the data you wish to save at that location, and then returning using [FIRTransactionResult successWithValue:].
To modify the data, set its value property to any of the native types support by Firebase Database:
Note that changes made to a child FIRMutableData instance will be visible to the parent.
| - (FIRMutableData *) childDataByAppendingPath: | (NSString *) | path |
Used to obtain a FIRMutableData instance that encapsulates the data at the given relative path. Note that changes made to the child will be visible to the parent.
| path | A path string, consisting either of a single segment, like 'child', or multiple segments, 'a/deeper/child' |
| - (BOOL) hasChildAtPath: | (NSString *) | path |
Indicates whether this mutable data has a child at the given path.
| path | A path string, consisting either of a single segment, like 'child', or multiple segments, 'a/deeper/child' |
| - (BOOL) hasChildren |
Returns boolean indicating whether this mutable data has children.
|
readnonatomicstrong |
Used to iterate over the children at this location. You can use the native for .. in syntax:
for (FIRMutableData* child in data.children) { ... }
Note that this enumerator operates on an immutable copy of the child list. So, you can modify the instance during iteration, but the new additions will not be visible until you get a new enumerator.
|
readnonatomicassign |
|
readnonatomicstrong |
|
readwritenonatomicstrong |
Set this property to update the priority of the data at this location. Can be set to the following types:
|
readwritenonatomicstrong |
To modify the data contained by this instance of FIRMutableData, set this to any of the native types supported by Firebase Database:
Note that setting this value will override the priority at this location.
1.8.9.1