class DittoDocumentPath
Provides an interface to specify a path to a key in a document that you can then call a function on to get the value at the specified key as a specific type. You obtain a DittoDocumentPath by subscripting a DittoDocument and you can then further subscript a DittoDocumentPath to further specify the key of the document that you want to get the value of.
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: String |
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?> |
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 |
value |
val value: Map<String, Any?> |
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. operator fun get(key: String): DittoDocumentPath
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. operator fun get(index: Int): DittoDocumentPath |