com.google.android.gms.wearable.DataItem |
The base object of data stored in the Android Wear network. DataItem
are replicated
across all devices in the network. It contains a small blob of data and associated assets.
A DataItem
is identified by its Uri, which contains its creator and a path.
See also:
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A map of assets associated with this data item.
| |||||||||||
An array of data stored at the specified
Uri . | |||||||||||
Returns the DataItem's Uri.
| |||||||||||
Sets the data in a data item.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
A map of assets associated with this data item. DataMapItem
may be used to store
structured data in the network, including assets.
Returns | |
---|---|
Map<String, DataItemAsset> |
An array of data stored at the specified Uri
. DataMapItem
may be used
to store structured data in the network.
Returns | |
---|---|
byte[] |
Returns the DataItem's Uri. getHost()
returns the id of the node that created it.
Returns | |
---|---|
Uri |
Sets the data in a data item.
The current maximum data item size limit is approximtely 100k. Data items should generally be much smaller than this limit.
Parameters | |
---|---|
data |
byte
|
Returns | |
---|---|
DataItem |