java.lang.Object | |
↳ | com.google.android.gms.wearable.PutDataRequest |
PutDataRequest is used to create new data items in the Android Wear network.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | WEAR_URI_SCHEME | URI scheme to use for Wear URIs. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a dataItem with the provided, complete, path.
| |||||||||||
Creates a PutDataRequest from an existing DataItem using the provided source.
| |||||||||||
Creates a
PutDataRequest with a randomly generated id prefixed with the provided
path. | |||||||||||
Returns an asset previously added with
putAsset(String, Asset) . | |||||||||||
An array of data stored at the specfied
Uri . | |||||||||||
Returns a
Uri for the pending data item. | |||||||||||
Whether the DataItem for this request is urgent.
| |||||||||||
Adds an asset to the data item.
| |||||||||||
Removes a previously added asset.
| |||||||||||
Sets the data in a data item.
| |||||||||||
Flags this DataItem for urgent transport.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
URI scheme to use for Wear URIs. See DataApi
for details of the Wear URI format.
Creates a PutDataRequest from an existing DataItem using the provided source.
Parameters | |
---|---|
source |
DataItem
|
Returns | |
---|---|
PutDataRequest |
Creates a PutDataRequest
with a randomly generated id prefixed with the provided
path.
Parameters | |
---|---|
pathPrefix |
String
|
Returns | |
---|---|
PutDataRequest |
Returns | |
---|---|
Map<String, Asset> |
unmodifiable map of assets on this dataItem. |
An array of data stored at the specfied Uri
. PutDataMapRequest
may be used
to store structured data in the network.
Returns | |
---|---|
byte[] |
Parameters | |
---|---|
key |
String
|
Returns | |
---|---|
boolean |
true if the asset exists in this data item. |
Whether the DataItem for this request is urgent.
Returns | |
---|---|
boolean |
true if the DataItem for this request is urgent |
Flags this DataItem for urgent transport. Updates to DataItems with the same path will be applied in the order they are received. A subsequent urgent update will remove the delay for pending updates. A subsequent delayed update will not delay pending urgent updates.
DataItems will be delayed no longer than 30 minutes, subject to a connected peer, but are expected to arrive much sooner.
Clients should only setUrgent()
for DataItems which need to be delivered right
away.
Returns | |
---|---|
PutDataRequest |
Returns | |
---|---|
String |
Parameters | |
---|---|
verbose |
boolean
|
Returns | |
---|---|
String |
Parameters | |
---|---|
dest |
Parcel
|
flags |
int
|