Package-level declarations

Types

Link copied to clipboard

Ditto is the entrypoint for accessing Ditto-related functionality in the Android SDK.

Link copied to clipboard

An acceptor returned from binding a topic.

Link copied to clipboard

An address uniquely representing another device on the Ditto network.

Link copied to clipboard

Represents an attachment and can be used to insert the associated attachment into a document at a specific key.

Link copied to clipboard

Manages an in-progress attachment fetch operation.

Link copied to clipboard

The different results that can occur in relation to an attachment fetch.

Link copied to clipboard

Serves as a token for a specific attachment that you can pass to a call to fetchAttachment on the DittoStore.

Link copied to clipboard

Represents a string-based authentication provider identifier used for login with Ditto.

Link copied to clipboard

Represents the current authentication status of a Ditto instance.

Link copied to clipboard

Manages authentication with Ditto Server.

Link copied to clipboard

A configuration object for initializing a Ditto instance.

Link copied to clipboard

Represents a connection between two peers in a Ditto mesh network.

Link copied to clipboard

Contains information about a remote peer that has requested a connection.

Link copied to clipboard

Indicates whether a connection request should be authorized.

Link copied to clipboard

The core of the Ditto Data Streams API, allowing topics to be bound and connections to be made.

Link copied to clipboard
class DittoDiff(implementation: InternalDittoDiff)

Represents a diff between two lists.

Link copied to clipboard

Calculates diffs between lists of DittoQueryResultItem.

Link copied to clipboard

Entrypoint for accessing information about the amount of disk storage used by Ditto. This class can't be instantiated. You can access an instance through the ditto.diskUsage API.

Link copied to clipboard

A directory or file in the Ditto working directory. Directories can be traversed by accessing the children property. Files won't have any children.

Link copied to clipboard
sealed class DittoException : Exception

All errors that are thrown by the Ditto SDK are wrapped as a DittoException. This type wraps multiple different types of error that each have an associated reason.

Link copied to clipboard

Provides access to experimental Ditto SDK features for testing purposes.

Link copied to clipboard
actual object DittoFactory

Factory object for creating Ditto instances.

actual object DittoFactory

Factory object for creating Ditto instances.

expect object DittoFactory

Factory object for creating Ditto instances.

actual object DittoFactory

Factory object for creating Ditto instances.

Link copied to clipboard

The file system entry type for a DittoDiskUsageItem.

Link copied to clipboard

Inbound data from a stream.

Link copied to clipboard
Link copied to clipboard
object DittoLog

Singleton for emitting log messages from the Ditto SDK.

Link copied to clipboard

A callback interface for receiving Ditto SDK log events.

Link copied to clipboard

Singleton object with static methods to customize the logging behavior from Ditto.

Link copied to clipboard

Severity levels for Ditto SDK log messages.

Link copied to clipboard
class DittoPeer

An instance of Ditto taking part in the mesh network.

Link copied to clipboard

Operating system type of a peer in the Ditto mesh.

Link copied to clipboard

Manages peer discovery and network topology information.

Link copied to clipboard

Represents the Ditto mesh network of peers and their connections between each other. The localPeer is the entrypoint, all others are remote peers known by the local peer (either directly or via other remote peers).

Link copied to clipboard

Represents results returned when executing a DQL query containing a DittoQueryResultItem for each match.

Link copied to clipboard

A single item in a DittoQueryResult, representing one document that matched a DQL query.

Link copied to clipboard

Reliability level for a DittoStream.

Link copied to clipboard

A resource managed by the Ditto SDK that must be explicitly released when no longer needed.

Link copied to clipboard
Link copied to clipboard

The delivery status of a message sent via DittoStream.send.

Link copied to clipboard

Manages diagnostic information collection for small peers.

Link copied to clipboard

Provides access to execute Ditto queries.

Link copied to clipboard

A store observer invokes an observation handler whenever results for its query change.

Link copied to clipboard

A stream for bidirectional communication.

Link copied to clipboard

A candidate for opening a stream.

Link copied to clipboard

The status of a DittoStream, indicating whether it is open or how it was closed.

Link copied to clipboard
class DittoSync

Provides access to sync-related functionality of Ditto.

Link copied to clipboard

A sync subscription configures Ditto to receive updates from remote peers about documents matching the subscription's query.

Link copied to clipboard

Represents a transaction in the Ditto store.

Link copied to clipboard

Represents an action that completes a transaction by either committing it or rolling it back.

Link copied to clipboard

Encapsulates information about a transaction.

Link copied to clipboard

The health condition of a Ditto transport subsystem.

Link copied to clipboard

An event describing a change in the health of a transport subsystem.

Link copied to clipboard
sealed class MaySendArguments

A type hint to show whether or not a DittoStreamCandidate can send arguments when opened.

Link copied to clipboard
@RequiresOptIn(message = "This API is in preview. It may be changed in the future without notice.")
annotation class PreviewDataStreams

Opt-in annotation for the Data Streams preview API.

Functions

Link copied to clipboard

Opens the stream as write-only, ignoring all messages that may be received on the returned DittoStream.

Opens the stream, calling the provided callback whenever a message is received.