DataItemAsset | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Methods | Inherited Methods | [Expand All]
public interface

# DataItemAsset

implements Freezable<DataItemAsset>

com.google.android.gms.wearable.DataItemAsset

## Class Overview

A reference to an asset stored in a data item. Used to fetch file descriptors using `getFdForAsset(GoogleApiClient, DataItemAsset)`.

## Summary

Public Methods
abstract String | getDataItemKey()
abstract String | getId()

[Expand] Inherited Methods
From interface com.google.android.gms.common.data.Freezable
abstract DataItemAsset | freeze() Freeze a volatile representation into an immutable representation.
abstract boolean | isDataValid() Check to see if this object is valid for use.

## 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.