CallbackDataSourceDesc2

public class CallbackDataSourceDesc2
extends DataSourceDesc2

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


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

Users should use CallbackDataSourceDesc2.Builder to create CallbackDataSourceDesc2.

See also:

Summary

Nested classes

class CallbackDataSourceDesc2.Builder

This Builder class simplifies the creation of a CallbackDataSourceDesc2 object. 

Inherited constants

Public methods

CallbackDataSource2 getCallbackDataSource2()

Return the CallbackDataSource2 that implements the callback for this data source.

int getType()

Return the type of data source.

Inherited methods

Public methods

getCallbackDataSource2

public CallbackDataSource2 getCallbackDataSource2 ()

Return the CallbackDataSource2 that implements the callback for this data source.

Returns
CallbackDataSource2 the CallbackDataSource2 that implements the callback for this data source,

getType

public int getType ()

Return the type of data source.

Returns
int the type of data source