Package-level declarations

Types

Link copied to clipboard

Helper methods for accessing the DataStore for the Data Layer, using reflection to lookup the serializer.

Link copied to clipboard

Registry of known serializers for an instance of the WearDataLayerRegistry. All types used for data stores must be registered here before use.

Link copied to clipboard
interface TargetNodeId

A selector for a Node to connect with over the data client without needing to resolve ahead of time. The implementations could be anything from a hardcoded value to querying the CapabilityClient.

Link copied to clipboard

Checks whether a given Wearable Data Layer API is available on this device.

Link copied to clipboard
class WearDataLayerRegistry(val dataClient: DataClient, val nodeClient: NodeClient, val messageClient: MessageClient, val capabilityClient: CapabilityClient, coroutineScope: CoroutineScope)

Implementation of Androidx Datastore for Proto and Preferences on top of the Wearable DataClient.

Link copied to clipboard
abstract class WearDataService : WearableListenerService, LifecycleOwner

Base service class for applications wishing to be woken up to receive data layer events.