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(name) .

Methods

getData()

JsonElement getData()

Returns the record data.

getError()

DeepstreamError getData()

Returns any errors while retrieving the record data.

hasError()

boolean hasError()

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