public final class

CallbackMediaItem.Builder

extends MediaItem.BuilderBase<CallbackMediaItem.Builder>

 java.lang.Object

androidx.media2.MediaItem.BuilderBase<CallbackMediaItem.Builder>

↳androidx.media2.CallbackMediaItem.Builder

Overview

This Builder class simplifies the creation of a CallbackMediaItem object.

Summary

Constructors
publicBuilder(DataSourceCallback dsc2)

Creates a new Builder object.

Methods
public CallbackMediaItembuild()

from MediaItem.BuilderBase<T>setEndPosition, setMetadata, setStartPosition
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(DataSourceCallback dsc2)

Creates a new Builder object.

Parameters:

dsc2: the DataSourceCallback for the media you want to play

Methods

public CallbackMediaItem build()

Returns:

A new CallbackMediaItem with values supplied by the Builder.