UriDataSourceDesc2

public class UriDataSourceDesc2
extends DataSourceDesc2

java.lang.Object
   ↳ androidx.media2.DataSourceDesc2
     ↳ androidx.media2.UriDataSourceDesc2


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

Users should use UriDataSourceDesc2.Builder to create UriDataSourceDesc2.

See also:

Summary

Nested classes

class UriDataSourceDesc2.Builder

This Builder class simplifies the creation of a UriDataSourceDesc2 object. 

Inherited constants

Public methods

int getType()

Return the type of data source.

Uri getUri()

Return the Uri of this data source.

Context getUriContext()

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

List<HttpCookie> getUriCookies()

Return the Uri cookies of this data source.

Map<String, String> getUriHeaders()

Return the Uri headers of this data source.

Inherited methods

Public methods

getType

public int getType ()

Return the type of data source.

Returns
int the type of data source

getUri

public Uri getUri ()

Return the Uri of this data source.

Returns
Uri the Uri of this data source

getUriContext

public Context getUriContext ()

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

Returns
Context the Context used for resolving the Uri of this data source

getUriCookies

public List<HttpCookie> getUriCookies ()

Return the Uri cookies of this data source.

Returns
List<HttpCookie> the Uri cookies of this data source

getUriHeaders

public Map<String, String> getUriHeaders ()

Return the Uri headers of this data source.

Returns
Map<String, String> the Uri headers of this data source