Builder

class Builder : DataSourceDesc2.Builder<CallbackDataSourceDesc2.Builder!>
kotlin.Any
   ↳ 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
<init>(@NonNull m2ds: CallbackDataSource2)

Creates a new Builder object.

Public methods
CallbackDataSourceDesc2!

Inherited functions

Public constructors

<init>

Builder(@NonNull m2ds: CallbackDataSource2)

Creates a new Builder object.

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

Public methods

build

fun build(): CallbackDataSourceDesc2!
Return
CallbackDataSourceDesc2!: A new CallbackDataSourceDesc2 with values supplied by the Builder.