CallbackDataSourceDesc2.Builder

public static final class CallbackDataSourceDesc2.Builder
extends Builder<CallbackDataSourceDesc2.Builder>

java.lang.Object
   ↳ androidx.media2.DataSourceDesc2.Builder<androidx.media2.CallbackDataSourceDesc2.Builder>
     ↳ androidx.media2.CallbackDataSourceDesc2.Builder


This Builder class simplifies the creation of a CallbackDataSourceDesc2 object.

Summary

Public constructors

CallbackDataSourceDesc2.Builder(CallbackDataSource2 m2ds)

Creates a new Builder object.

Public methods

CallbackDataSourceDesc2 build()

Inherited methods

Public constructors

CallbackDataSourceDesc2.Builder

public CallbackDataSourceDesc2.Builder (CallbackDataSource2 m2ds)

Creates a new Builder object.

Parameters
m2ds CallbackDataSource2: the CallbackDataSource2 for the media you want to play

Public methods

build

public CallbackDataSourceDesc2 build ()

Returns
CallbackDataSourceDesc2 A new CallbackDataSourceDesc2 with values supplied by the Builder.