Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

UriDataSourceDesc2

open class UriDataSourceDesc2 : DataSourceDesc2
kotlin.Any
   ↳ androidx.media2.DataSourceDesc2
   ↳ androidx.media2.UriDataSourceDesc2

Structure for data source descriptor for Uri. Used by MediaItem2.

Users should use Builder to create UriDataSourceDesc2.

Summary

Nested classes

This Builder class simplifies the creation of a UriDataSourceDesc2 object.

Inherited constants
Public methods
open MutableMap<String!, String!>?

Return the Uri headers of this data source.

open MutableList<HttpCookie!>?

Return the Uri cookies of this data source.

open Int

Return the type of data source.

open Uri

Return the Uri of this data source.

open Context

Return the Context used for resolving the Uri of this data source.

Inherited functions

Public methods

getUriHeaders

@Nullable open fun getUriHeaders(): MutableMap<String!, String!>?

Return the Uri headers of this data source.

Return
MutableMap<String!, String!>?: the Uri headers of this data source

getUriCookies

@Nullable open fun getUriCookies(): MutableList<HttpCookie!>?

Return the Uri cookies of this data source.

Return
MutableList<HttpCookie!>?: the Uri cookies of this data source

getType

open fun getType(): Int

Return the type of data source.

Return
Int: the type of data source

getUri

@NonNull open fun getUri(): Uri

Return the Uri of this data source.

Return
Uri: the Uri of this data source

getUriContext

@NonNull open fun getUriContext(): Context

Return the Context used for resolving the Uri of this data source.

Return
Context: the Context used for resolving the Uri of this data source