Builder

class Builder
kotlin.Any
   ↳ androidx.media.MediaLibraryService2.MediaLibrarySession.Builder

Builder for MediaLibrarySession.

Summary

Public constructors

Public methods
MediaLibraryService2.MediaLibrarySession.Builder

MediaLibraryService2.MediaLibrarySession.Builder

Unit
setImpl(impl: BuilderBase!)

MediaLibraryService2.MediaLibrarySession.Builder

MediaLibraryService2.MediaLibrarySession.Builder

MediaLibraryService2.MediaLibrarySession.Builder

MediaLibraryService2.MediaLibrarySession.Builder

Set callback for the session.

MediaLibraryService2.MediaLibrarySession

Public constructors

Public methods

setVolumeProvider

fun setVolumeProvider(volumeProvider: VolumeProviderCompat?): MediaLibraryService2.MediaLibrarySession.Builder

setImpl

fun setImpl(impl: BuilderBase!): Unit

setPlaylistAgent

fun setPlaylistAgent(playlistAgent: MediaPlaylistAgent): MediaLibraryService2.MediaLibrarySession.Builder

setSessionActivity

fun setSessionActivity(pi: PendingIntent?): MediaLibraryService2.MediaLibrarySession.Builder

setSessionCallback

fun setSessionCallback(executor: Executor!, callback: MediaLibraryService2.MediaLibrarySession.MediaLibrarySessionCallback!): MediaLibraryService2.MediaLibrarySession.Builder

Set callback for the session.

Parameters
executor Executor!: callback executor
callback Executor!: session callback.
Return
MediaLibraryService2.MediaLibrarySession.Builder: