IMediaController


interface IMediaController : IInterface

Known direct subclasses
IMediaController.Default

Default implementation for IMediaController.

IMediaController.Stub

Local-side IPC implementation stub class.


Interface from MediaSession to MediaController.

It's for internal use only, not intended to be used by library users.

Summary

Nested types

Default implementation for IMediaController.

Local-side IPC implementation stub class.

Public functions

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!>!)

Inherited functions

From android.os.IInterface

Public functions

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