DittoDocumentPath

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.

Functions

get
Link copied to clipboard
operator fun get(index: Int): DittoDocumentPath
Used to specify an index in the array at the preceding key-path specified through the subscripting defined previously.
operator fun get(key: String): DittoDocumentPath
Used to specify a path to a key in the document that you can subscript further to access a nested key in the document.

Properties

attachmentToken
Link copied to clipboard
val attachmentToken: DittoAttachmentToken?
Returns the value at the previously specified key in the document as a DittoAttachmentToken.
boolean
Link copied to clipboard
val boolean: Boolean?
Returns the value at the previously specified key in the document as a Boolean if possible, otherwise the return value will be null.
booleanValue
Link copied to clipboard
val booleanValue: Boolean
Returns the value at the previously specified key in the document as a Boolean.
docID
Link copied to clipboard
val docID: DittoDocumentID
double
Link copied to clipboard
val double: Double?
Returns the value at the previously specified key in the document as a Double if possible, otherwise the return value will be null.
doubleValue
Link copied to clipboard
val doubleValue: Double
Returns the value at the previously specified key in the document as a Double.
float
Link copied to clipboard
val float: Float?
Returns the value at the previously specified key in the document as a Float if possible, otherwise the return value will be null.
floatValue
Link copied to clipboard
val floatValue: Float
Returns the value at the previously specified key in the document as a Float.
innerValue
Link copied to clipboard
val innerValue: Map<String, Any?>
int
Link copied to clipboard
val int: Int?
Returns the value at the previously specified key in the document as an Int if possible, otherwise the return value will be null.
intValue
Link copied to clipboard
val intValue: Int
Returns the value at the previously specified key in the document as an Int.
list
Link copied to clipboard
val list: List<Any?>?
Returns the value at the previously specified key in the document as a List<Any?> if possible, otherwise the return value will be null.
listValue
Link copied to clipboard
val listValue: List<Any?>
Returns the value at the previously specified key in the document as a List<Any?>.
map
Link copied to clipboard
val map: Map<String, Any?>?
Returns the value at the previously specified key in the document as a Map<String, Any?> if possible, otherwise the return value will be null.
mapValue
Link copied to clipboard
val mapValue: Map<String, Any?>
Returns the value at the previously specified key in the document as a Map<String, Any?>.
string
Link copied to clipboard
val string: String?
Returns the value at the previously specified key in the document as a String if possible, otherwise the return value will be null.
stringValue
Link copied to clipboard
val stringValue: String
Returns the value at the previously specified key in the document as a String.
value
Link copied to clipboard
val value: Any?
Returns the value at the previously specified key in the document as an Any? if possible, otherwise the return value will be null