why deepstreamHub? compare us getting started faq
use cases
products
developers
company
blog contact

SnapshotResult provides access to the data of a record or any errors while retrieving it via client.record.snapshot(_:) .

Methods

getData()

class func getData() -> JsonElement

Returns the record data.

getError()

class func getData() -> DeepstreamError

Returns any errors while retrieving the record data.

hasError()

class func hasError() -> Bool

Returns a boolean indicating whether or not there was an error retrieving the record data.