IMediaController.Default


class IMediaController.Default : IMediaController


Default implementation for IMediaController.

Summary

Public constructors

Public functions

IBinder!
Unit
Unit
onAvailableCommandsChangedFromSession(
    seq: Int,
    sessionCommandsBundle: Bundle!,
    playerCommandsBundle: Bundle!
)
Unit
onChildrenChanged(
    seq: Int,
    parentId: String!,
    itemCount: Int,
    libraryParams: Bundle!
)
Unit
onConnected(seq: Int, connectionResult: Bundle!)
Unit
onCustomCommand(seq: Int, command: Bundle!, args: Bundle!)
Unit
Unit
onExtrasChanged(seq: Int, extras: Bundle!)
Unit
onLibraryResult(seq: Int, libraryResult: Bundle!)
Unit
onPeriodicSessionPositionInfoChanged(
    seq: Int,
    sessionPositionInfo: Bundle!
)
Unit
onPlayerInfoChanged(
    seq: Int,
    playerInfoBundle: Bundle!,
    isTimelineExcluded: Boolean
)

Deprecated: Use onPlayerInfoChangedWithExclusions from MediaControllerStub#VERSION_INT=2.

Unit
onPlayerInfoChangedWithExclusions(
    seq: Int,
    playerInfoBundle: Bundle!,
    playerInfoExclusions: Bundle!
)

Introduced to deprecate onPlayerInfoChanged (from MediaControllerStub#VERSION_INT=2).

Unit
Unit
onSearchResultChanged(
    seq: Int,
    query: String!,
    itemCount: Int,
    libraryParams: Bundle!
)
Unit
onSessionActivityChanged(seq: Int, pendingIntent: PendingIntent!)
Unit
onSessionResult(seq: Int, sessionResult: Bundle!)
Unit
onSetCustomLayout(seq: Int, commandButtonList: (Mutable)List<Bundle!>!)

Public constructors

Default

Default()

Public functions

asBinder

fun asBinder(): IBinder!

onAvailableCommandsChangedFromPlayer

fun onAvailableCommandsChangedFromPlayer(seq: Int, commandsBundle: Bundle!): Unit

onAvailableCommandsChangedFromSession

fun onAvailableCommandsChangedFromSession(
    seq: Int,
    sessionCommandsBundle: Bundle!,
    playerCommandsBundle: Bundle!
): Unit

onChildrenChanged

fun onChildrenChanged(
    seq: Int,
    parentId: String!,
    itemCount: Int,
    libraryParams: Bundle!
): Unit

onConnected

fun onConnected(seq: Int, connectionResult: Bundle!): Unit

onCustomCommand

fun onCustomCommand(seq: Int, command: Bundle!, args: Bundle!): Unit

onDisconnected

fun onDisconnected(seq: Int): Unit

onExtrasChanged

fun onExtrasChanged(seq: Int, extras: Bundle!): Unit

onLibraryResult

fun onLibraryResult(seq: Int, libraryResult: Bundle!): Unit

onPeriodicSessionPositionInfoChanged

fun onPeriodicSessionPositionInfoChanged(
    seq: Int,
    sessionPositionInfo: Bundle!
): Unit

onPlayerInfoChanged

fun onPlayerInfoChanged(
    seq: Int,
    playerInfoBundle: Bundle!,
    isTimelineExcluded: Boolean
): Unit

Deprecated: Use onPlayerInfoChangedWithExclusions from MediaControllerStub#VERSION_INT=2.

onPlayerInfoChangedWithExclusions

fun onPlayerInfoChangedWithExclusions(
    seq: Int,
    playerInfoBundle: Bundle!,
    playerInfoExclusions: Bundle!
): Unit

Introduced to deprecate onPlayerInfoChanged (from MediaControllerStub#VERSION_INT=2).

onRenderedFirstFrame

fun onRenderedFirstFrame(seq: Int): Unit

onSearchResultChanged

fun onSearchResultChanged(
    seq: Int,
    query: String!,
    itemCount: Int,
    libraryParams: Bundle!
): Unit

onSessionActivityChanged

fun onSessionActivityChanged(seq: Int, pendingIntent: PendingIntent!): Unit

onSessionResult

fun onSessionResult(seq: Int, sessionResult: Bundle!): Unit

onSetCustomLayout

fun onSetCustomLayout(seq: Int, commandButtonList: (Mutable)List<Bundle!>!): Unit