DataItemAsset
Stay organized with collections
Save and categorize content based on your preferences.
Public Method Summary
abstract String
|
|
abstract String
|
getId()
Returns the Android Wear-wide unique identifier for a particular asset.
|
Inherited Method Summary
From interface
com.google.android.gms.common.data.Freezable
Public Methods
public abstract String getDataItemKey ()
Returns the identifier used to address this asset in the context of an existing
DataItem
.
public abstract String getId ()
Returns the Android Wear-wide unique identifier for a particular asset.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eDataItemAsset\u003c/code\u003e provides a reference to an asset stored within a data item on Android Wear.\u003c/p\u003e\n"],["\u003cp\u003eIt's used with the \u003ccode\u003eDataApi\u003c/code\u003e to get file descriptors for these assets.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eDataItemAsset\u003c/code\u003e has a unique identifier accessible via \u003ccode\u003egetId()\u003c/code\u003e and a key to address it within a \u003ccode\u003eDataItem\u003c/code\u003e using \u003ccode\u003egetDataItemKey()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits methods from \u003ccode\u003eFreezable\u003c/code\u003e allowing it to be frozen (\u003ccode\u003efreeze()\u003c/code\u003e) and checked for data validity (\u003ccode\u003eisDataValid()\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,[]]