class DittoMutableDocumentPath
Provides an interface to specify a path to a key in a document that you can then call various update functions on. You obtain a DittoMutableDocumentPath by subscripting a DittoMutableDocument and you can then further subscript a DittoMutableDocumentPath to further specify the key of the document that you want to update.
attachmentToken |
Returns the value at the previously specified key in the document as a val attachmentToken: DittoAttachmentToken? |
boolean |
Returns the value at the previously specified key in the document as a val boolean: Boolean? |
booleanValue |
Returns the value at the previously specified key in the document as a val booleanValue: Boolean |
docID |
val docID: DittoDocumentID |
double |
Returns the value at the previously specified key in the document as a val double: Double? |
doubleValue |
Returns the value at the previously specified key in the document as a val doubleValue: Double |
float |
Returns the value at the previously specified key in the document as a val float: Float? |
floatValue |
Returns the value at the previously specified key in the document as a val floatValue: Float |
int |
Returns the value at the previously specified key in the document as an val int: Int? |
intValue |
Returns the value at the previously specified key in the document as an val intValue: Int |
list |
Returns the value at the previously specified key in the document as a val list: List<Any?>? |
listValue |
Returns the value at the previously specified key in the document as a val listValue: List<Any?> |
map |
Returns the value at the previously specified key in the document as a val map: Map<String, Any?>? |
mapValue |
Returns the value at the previously specified key in the document as a val mapValue: Map<String, Any?> |
path |
val path: String |
string |
Returns the value at the previously specified key in the document as a val string: String? |
stringValue |
Returns the value at the previously specified key in the document as a val stringValue: String |
get |
Used to specify a path to a key in the document that you can subscript further to access a nested key in the document and eventually perform an update operation on. operator fun get(key: String): DittoMutableDocumentPath
Used to specify an index in the array at the preceding key-path specified through the subscripting defined previously. You can subscript the return value further to access a further nested key in the document and eventually perform an update operation. operator fun get(index: Int): DittoMutableDocumentPath |
increment |
Increment a counter at the document's key defined by the preceding subscripting. This will only succeed if the value at the subscripting-defined key is a counter. fun increment(amount: Number): Unit |
insert |
Inserts a value into an array at the index defined by the preceding subscripting. This will only succeed if the value at the subscripting-defined key is an index into an array. fun insert(value: Any): Unit |
pop |
Pop a value off the end of an array at the document's key defined by the preceding subscripting. This will only succeed if the value at the subscripting-defined key is an array. fun pop(): Any? |
push |
Push a value on to the end of an array at the document's key defined by the preceding subscripting. This will only succeed if the value at the subscripting-defined key is an array. fun push(value: Any): Unit |
remove |
Remove a value at the document's key defined by the preceding subscripting. fun remove(): Unit |
replaceWithCounter |
Replace a value at the document's key defined by the preceding subscripting with a counter. fun replaceWithCounter(isDefault: Boolean = false): Unit |
set |
Set a value at the document's key defined by the preceding subscripting. fun set(value: Any, isDefault: Boolean = false): Unit |