| 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.android.gms.common.internal.safeparcel.SafeParcelable
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
| 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
URI scheme to use for Wear URIs. See DataApi for details of the Wear URI format.
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.
An array of data stored at the specfied Uri. PutDataMapRequest may be used
to store structured data in the network.
true if the asset exists in this data item. Whether 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.