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

CallbackDataSourceDesc2

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

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

Users should use Builder to create CallbackDataSourceDesc2.

Summary

Nested classes

This Builder class simplifies the creation of a CallbackDataSourceDesc2 object.

Inherited constants
Public methods
open Int

Return the type of data source.

open CallbackDataSource2

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

Inherited functions

Public methods

getType

open fun getType(): Int

Return the type of data source.

Return
Int: the type of data source

getCallbackDataSource2

@NonNull open fun getCallbackDataSource2(): CallbackDataSource2

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

Return
CallbackDataSource2: the CallbackDataSource2 that implements the callback for this data source,