AI-generated Key Takeaways
-
Several interfaces related to Capability, Channel, Data, and Message APIs are deprecated and recommend using their corresponding Client classes.
-
The content lists annotations for filter types for Capability, Node, Data, and Message clients.
-
Annotations are provided for values passed to
ChannelApi.ChannelListener.onChannelClosedandChannelClient.ChannelCallback.onChannelClosed. -
Information is available about CapabilityInfo, which details capabilities on the network and their availability.
-
The content also describes key classes like Asset, CapabilityClient, ChannelClient, DataClient, MessageClient, NodeClient, and Wearable, outlining their primary functions in the Android Wear network.
Annotations
| CapabilityApi.CapabilityFilterType | |
| CapabilityApi.NodeFilterType | |
| CapabilityClient.CapabilityFilterType | Capability filter types. |
| CapabilityClient.NodeFilterType | Node filter types. |
| ChannelApi.CloseReason | An annotation for values passed to
ChannelApi.ChannelListener.onChannelClosed(Channel, int, int), and other
methods on the ChannelApi.ChannelListener
interface. |
| ChannelClient.CloseReason | An annotation for values passed to
ChannelClient.ChannelCallback.onChannelClosed(ChannelClient.Channel, int,
int), and other methods on
ChannelClient.ChannelCallback. |
| DataApi.FilterType | |
| DataClient.FilterType | Data filter types. |
| MessageApi.FilterType | |
| MessageClient.FilterType | Message filter types. |
Interfaces
Classes
| Asset | An Asset is a
binary blob shared between data items that is replicated across the wearable network on
demand. |
| CapabilityClient | Exposes an API to learn about capabilities provided by nodes on the Wear network. |
| ChannelClient | Client interface for Wearable Channel API. |
| ChannelClient.ChannelCallback | A callback which will be notified on changes to channels. |
| DataClient | Exposes an API for components to read or write
data
items and assets. |
| DataClient.GetFdForAssetResponse | Contains a file descriptor for the requested asset. |
| DataEventBuffer | Data structure holding references to a set of events. |
| DataItemBuffer | Data structure holding reference to a set of
DataItems. |
| DataMap | A map of data supported by PutDataMapRequest
and DataMapItems. |
| DataMapItem | Creates a new dataItem-like object containing structured and serializable data. |
| MessageClient | Exposes an API for components to send messages to other nodes. |
| NodeClient | Exposes an API for learning about local or connected Nodes. |
| PutDataMapRequest | PutDataMapRequest
is a DataMap-aware
version of PutDataRequest. |
| PutDataRequest | PutDataRequest
is used to create new data items in the Android Wear network. |
| Wearable | An API for the Android Wear platform. |
| Wearable.WearableOptions | Options for the Wearable API. |
| Wearable.WearableOptions.Builder | Builder class for Wearable.WearableOptions
|
| WearableListenerService | Receives events from other nodes, such as data changes, messages or connectivity events. |
| WearableStatusCodes | Error codes for wearable API failures. |
Exceptions
| ChannelIOException | A subclass of IOException
which can be thrown from the streams returned by
Channel.getInputStream(GoogleApiClient) and
Channel.getOutputStream(GoogleApiClient). |