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

CallbackMediaItem

public class CallbackMediaItem
extends MediaItem

java.lang.Object
   ↳ androidx.media2.common.MediaItem
     ↳ androidx.media2.common.CallbackMediaItem


Structure for media item descriptor for DataSourceCallback.

Users should use CallbackMediaItem.Builder to create CallbackMediaItem.

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

See also:

Summary

Nested classes

class CallbackMediaItem.Builder

This Builder class simplifies the creation of a CallbackMediaItem object. 

Inherited constants

Public methods

DataSourceCallback getDataSourceCallback()

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

Inherited methods

Public methods

getDataSourceCallback

public DataSourceCallback getDataSourceCallback ()

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

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