java.lang.Object | |
↳ | com.google.android.gms.wearable.Asset |
An asset is a binary blob shared between data items that is replicated across the wearable network on demand.
It may represent an asset not yet added with the Android Wear network.
DataItemAsset
s are representations of an asset after it has been added to the
network through a PutDataRequest
.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an Asset using a byte array.
| |||||||||||
Creates an Asset using a file descriptor.
| |||||||||||
Create an Asset using an existing Asset's digest.
| |||||||||||
Creates an Asset using a content URI.
| |||||||||||
Returns the digest associated with the asset data.
| |||||||||||
Returns the file descriptor referencing the asset.
| |||||||||||
Returns the uri referencing the asset data.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||||||||||||||
From interface
android.os.Parcelable
|
Creates an Asset using a file descriptor. The FD should be closed after being successfully sent in a putDataItem request.
Creates an Asset using a content URI. Google Play services must have permission to read this Uri.
Returns the digest associated with the asset data. A digest is a content identifier used to identify the asset across devices.
Returns the file descriptor referencing the asset.
Returns the uri referencing the asset data.