The Android Developer Challenge is back! Submit your idea before December 2.

CallbackMediaItem

open class CallbackMediaItem : MediaItem
androidx.media2.common.MediaItem
   ↳ androidx.media2.common.CallbackMediaItem

Structure for media item descriptor for DataSourceCallback.

Users should use Builder to create CallbackMediaItem.

You cannot directly send this object across the process through ParcelUtils. See MediaItem for detail.

Summary

Nested classes

This Builder class simplifies the creation of a CallbackMediaItem object.

Inherited constants

Public methods

open DataSourceCallback

Return the DataSourceCallback that implements the callback for the data source of this media item.

Inherited functions

Public methods

getDataSourceCallback

@NonNull open fun getDataSourceCallback(): DataSourceCallback

Return the DataSourceCallback that implements the callback for the data source of this media item.

Return
DataSourceCallback: the DataSourceCallback that implements the callback for the data source of this media item,