DataApi.GetFdForAssetResult | 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 static interface

# DataApi.GetFdForAssetResult

implements Result Releasable

com.google.android.gms.wearable.DataApi.GetFdForAssetResult

## Class Overview

Contains a file descriptor for the requested asset.

This object should be released after use.

## Summary

Public Methods
abstract ParcelFileDescriptor | getFd() Returns a file descriptor for the requested asset.
abstract InputStream | getInputStream() Returns an input stream wrapping the file descriptor.

[Expand] Inherited Methods
From interface com.google.android.gms.common.api.Result
abstract Status | getStatus()
From interface com.google.android.gms.common.api.Releasable
abstract void | release()

## Public Methods

#### public abstract ParcelFileDescriptor getFd ()

Returns a file descriptor for the requested asset.

#### public abstract InputStream getInputStream ()

Returns an input stream wrapping the file descriptor. When this input stream is closed, the file descriptor is, as well.