interface IMediaSession : IInterface

Known direct subclasses
IMediaSession.Default

Default implementation for IMediaSession.

IMediaSession.Stub

Local-side IPC implementation stub class.


Interface from MediaController to MediaSession.

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

Summary

Nested types

Default implementation for IMediaSession.

Local-side IPC implementation stub class.

Constants

const String!
DESCRIPTOR = "androidx.media3.session.IMediaSession"

Public functions

Unit
addMediaItem(caller: IMediaController!, seq: Int, mediaItemBundle: Bundle!)
Unit
addMediaItemWithIndex(
    caller: IMediaController!,
    seq: Int,
    index: Int,
    mediaItemBundle: Bundle!
)
Unit
addMediaItems(caller: IMediaController!, seq: Int, mediaItems: IBinder!)
Unit
addMediaItemsWithIndex(
    caller: IMediaController!,
    seq: Int,
    index: Int,
    mediaItems: IBinder!
)
Unit
Unit
connect(caller: IMediaController!, seq: Int, connectionRequest: Bundle!)
Unit
Unit
decreaseDeviceVolumeWithFlags(
    caller: IMediaController!,
    seq: Int,
    flags: Int
)
Unit
Unit
getChildren(
    caller: IMediaController!,
    seq: Int,
    parentId: String!,
    page: Int,
    pageSize: Int,
    libraryParams: Bundle!
)
Unit
getItem(caller: IMediaController!, seq: Int, mediaId: String!)
Unit
getLibraryRoot(caller: IMediaController!, seq: Int, libraryParams: Bundle!)
Unit
getSearchResult(
    caller: IMediaController!,
    seq: Int,
    query: String!,
    page: Int,
    pageSize: Int,
    libraryParams: Bundle!
)
Unit
Unit
increaseDeviceVolumeWithFlags(
    caller: IMediaController!,
    seq: Int,
    flags: Int
)
Unit
moveMediaItem(
    caller: IMediaController!,
    seq: Int,
    currentIndex: Int,
    newIndex: Int
)
Unit
moveMediaItems(
    caller: IMediaController!,
    seq: Int,
    fromIndex: Int,
    toIndex: Int,
    newIndex: Int
)
Unit
onControllerResult(
    caller: IMediaController!,
    seq: Int,
    controllerResult: Bundle!
)
Unit
onCustomCommand(
    caller: IMediaController!,
    seq: Int,
    sessionCommand: Bundle!,
    args: Bundle!
)
Unit
pause(caller: IMediaController!, seq: Int)
Unit
play(caller: IMediaController!, seq: Int)
Unit
prepare(caller: IMediaController!, seq: Int)
Unit
release(caller: IMediaController!, seq: Int)
Unit
removeMediaItem(caller: IMediaController!, seq: Int, index: Int)
Unit
removeMediaItems(
    caller: IMediaController!,
    seq: Int,
    fromIndex: Int,
    toIndex: Int
)
Unit
replaceMediaItem(
    caller: IMediaController!,
    seq: Int,
    index: Int,
    mediaItemBundle: Bundle!
)
Unit
replaceMediaItems(
    caller: IMediaController!,
    seq: Int,
    fromIndex: Int,
    toIndex: Int,
    mediaItems: IBinder!
)
Unit
search(
    caller: IMediaController!,
    seq: Int,
    query: String!,
    libraryParams: Bundle!
)
Unit
seekBack(caller: IMediaController!, seq: Int)
Unit
seekForward(caller: IMediaController!, seq: Int)
Unit
seekTo(caller: IMediaController!, seq: Int, positionMs: Long)
Unit
Unit
seekToDefaultPositionWithMediaItemIndex(
    caller: IMediaController!,
    seq: Int,
    mediaItemIndex: Int
)
Unit
seekToNext(caller: IMediaController!, seq: Int)
Unit
Unit
Unit
Unit
seekToWithMediaItemIndex(
    caller: IMediaController!,
    seq: Int,
    mediaItemIndex: Int,
    positionMs: Long
)
Unit
setAudioAttributes(
    caller: IMediaController!,
    seq: Int,
    audioAttributes: Bundle!,
    handleAudioFocus: Boolean
)
Unit
setDeviceMuted(caller: IMediaController!, seq: Int, muted: Boolean)
Unit
setDeviceMutedWithFlags(
    caller: IMediaController!,
    seq: Int,
    muted: Boolean,
    flags: Int
)
Unit
setDeviceVolume(caller: IMediaController!, seq: Int, volume: Int)
Unit
setDeviceVolumeWithFlags(
    caller: IMediaController!,
    seq: Int,
    volume: Int,
    flags: Int
)
Unit
setMediaItem(caller: IMediaController!, seq: Int, mediaItemBundle: Bundle!)
Unit
setMediaItemWithResetPosition(
    caller: IMediaController!,
    seq: Int,
    mediaItemBundle: Bundle!,
    resetPosition: Boolean
)
Unit
setMediaItemWithStartPosition(
    caller: IMediaController!,
    seq: Int,
    mediaItemBundle: Bundle!,
    startPositionMs: Long
)
Unit
setMediaItems(caller: IMediaController!, seq: Int, mediaItems: IBinder!)
Unit
setMediaItemsWithResetPosition(
    caller: IMediaController!,
    seq: Int,
    mediaItems: IBinder!,
    resetPosition: Boolean
)
Unit
setMediaItemsWithStartIndex(
    caller: IMediaController!,
    seq: Int,
    mediaItems: IBinder!,
    startIndex: Int,
    startPositionMs: Long
)
Unit
setPlayWhenReady(
    caller: IMediaController!,
    seq: Int,
    playWhenReady: Boolean
)
Unit
setPlaybackParameters(
    caller: IMediaController!,
    seq: Int,
    playbackParametersBundle: Bundle!
)
Unit
setPlaybackSpeed(caller: IMediaController!, seq: Int, speed: Float)
Unit
setPlaylistMetadata(
    caller: IMediaController!,
    seq: Int,
    playlistMetadata: Bundle!
)
Unit
setRating(caller: IMediaController!, seq: Int, rating: Bundle!)
Unit
setRatingWithMediaId(
    caller: IMediaController!,
    seq: Int,
    mediaId: String!,
    rating: Bundle!
)
Unit
setRepeatMode(caller: IMediaController!, seq: Int, repeatMode: Int)
Unit
setShuffleModeEnabled(
    caller: IMediaController!,
    seq: Int,
    shuffleModeEnabled: Boolean
)
Unit
setTrackSelectionParameters(
    caller: IMediaController!,
    seq: Int,
    trackSelectionParametersBundle: Bundle!
)
Unit
setVideoSurface(caller: IMediaController!, seq: Int, surface: Surface!)
Unit
setVolume(caller: IMediaController!, seq: Int, volume: Float)
Unit
stop(caller: IMediaController!, seq: Int)
Unit
subscribe(
    caller: IMediaController!,
    seq: Int,
    parentId: String!,
    libraryParams: Bundle!
)
Unit
unsubscribe(caller: IMediaController!, seq: Int, parentId: String!)

Inherited functions

From android.os.IInterface

Constants

DESCRIPTOR

const val DESCRIPTOR = "androidx.media3.session.IMediaSession": String!

Public functions

addMediaItem

fun addMediaItem(caller: IMediaController!, seq: Int, mediaItemBundle: Bundle!): Unit

addMediaItemWithIndex

fun addMediaItemWithIndex(
    caller: IMediaController!,
    seq: Int,
    index: Int,
    mediaItemBundle: Bundle!
): Unit

addMediaItems

fun addMediaItems(caller: IMediaController!, seq: Int, mediaItems: IBinder!): Unit

addMediaItemsWithIndex

fun addMediaItemsWithIndex(
    caller: IMediaController!,
    seq: Int,
    index: Int,
    mediaItems: IBinder!
): Unit

clearMediaItems

fun clearMediaItems(caller: IMediaController!, seq: Int): Unit

connect

fun connect(caller: IMediaController!, seq: Int, connectionRequest: Bundle!): Unit

decreaseDeviceVolume

fun decreaseDeviceVolume(caller: IMediaController!, seq: Int): Unit

decreaseDeviceVolumeWithFlags

fun decreaseDeviceVolumeWithFlags(
    caller: IMediaController!,
    seq: Int,
    flags: Int
): Unit

flushCommandQueue

fun flushCommandQueue(caller: IMediaController!): Unit

getChildren

fun getChildren(
    caller: IMediaController!,
    seq: Int,
    parentId: String!,
    page: Int,
    pageSize: Int,
    libraryParams: Bundle!
): Unit

getItem

fun getItem(caller: IMediaController!, seq: Int, mediaId: String!): Unit

getLibraryRoot

fun getLibraryRoot(caller: IMediaController!, seq: Int, libraryParams: Bundle!): Unit

getSearchResult

fun getSearchResult(
    caller: IMediaController!,
    seq: Int,
    query: String!,
    page: Int,
    pageSize: Int,
    libraryParams: Bundle!
): Unit

increaseDeviceVolume

fun increaseDeviceVolume(caller: IMediaController!, seq: Int): Unit

increaseDeviceVolumeWithFlags

fun increaseDeviceVolumeWithFlags(
    caller: IMediaController!,
    seq: Int,
    flags: Int
): Unit

moveMediaItem

fun moveMediaItem(
    caller: IMediaController!,
    seq: Int,
    currentIndex: Int,
    newIndex: Int
): Unit

moveMediaItems

fun moveMediaItems(
    caller: IMediaController!,
    seq: Int,
    fromIndex: Int,
    toIndex: Int,
    newIndex: Int
): Unit

onControllerResult

fun onControllerResult(
    caller: IMediaController!,
    seq: Int,
    controllerResult: Bundle!
): Unit

onCustomCommand

fun onCustomCommand(
    caller: IMediaController!,
    seq: Int,
    sessionCommand: Bundle!,
    args: Bundle!
): Unit

pause

fun pause(caller: IMediaController!, seq: Int): Unit

play

fun play(caller: IMediaController!, seq: Int): Unit

prepare

fun prepare(caller: IMediaController!, seq: Int): Unit

release

fun release(caller: IMediaController!, seq: Int): Unit

removeMediaItem

fun removeMediaItem(caller: IMediaController!, seq: Int, index: Int): Unit

removeMediaItems

fun removeMediaItems(
    caller: IMediaController!,
    seq: Int,
    fromIndex: Int,
    toIndex: Int
): Unit

replaceMediaItem

fun replaceMediaItem(
    caller: IMediaController!,
    seq: Int,
    index: Int,
    mediaItemBundle: Bundle!
): Unit

replaceMediaItems

fun replaceMediaItems(
    caller: IMediaController!,
    seq: Int,
    fromIndex: Int,
    toIndex: Int,
    mediaItems: IBinder!
): Unit

search

fun search(
    caller: IMediaController!,
    seq: Int,
    query: String!,
    libraryParams: Bundle!
): Unit

seekBack

fun seekBack(caller: IMediaController!, seq: Int): Unit

seekForward

fun seekForward(caller: IMediaController!, seq: Int): Unit

seekTo

fun seekTo(caller: IMediaController!, seq: Int, positionMs: Long): Unit

seekToDefaultPosition

fun seekToDefaultPosition(caller: IMediaController!, seq: Int): Unit

seekToDefaultPositionWithMediaItemIndex

fun seekToDefaultPositionWithMediaItemIndex(
    caller: IMediaController!,
    seq: Int,
    mediaItemIndex: Int
): Unit

seekToNext

fun seekToNext(caller: IMediaController!, seq: Int): Unit

seekToNextMediaItem

fun seekToNextMediaItem(caller: IMediaController!, seq: Int): Unit

seekToPrevious

fun seekToPrevious(caller: IMediaController!, seq: Int): Unit

seekToPreviousMediaItem

fun seekToPreviousMediaItem(caller: IMediaController!, seq: Int): Unit

seekToWithMediaItemIndex

fun seekToWithMediaItemIndex(
    caller: IMediaController!,
    seq: Int,
    mediaItemIndex: Int,
    positionMs: Long
): Unit

setAudioAttributes

fun setAudioAttributes(
    caller: IMediaController!,
    seq: Int,
    audioAttributes: Bundle!,
    handleAudioFocus: Boolean
): Unit

setDeviceMuted

fun setDeviceMuted(caller: IMediaController!, seq: Int, muted: Boolean): Unit

setDeviceMutedWithFlags

fun setDeviceMutedWithFlags(
    caller: IMediaController!,
    seq: Int,
    muted: Boolean,
    flags: Int
): Unit

setDeviceVolume

fun setDeviceVolume(caller: IMediaController!, seq: Int, volume: Int): Unit

setDeviceVolumeWithFlags

fun setDeviceVolumeWithFlags(
    caller: IMediaController!,
    seq: Int,
    volume: Int,
    flags: Int
): Unit

setMediaItem

fun setMediaItem(caller: IMediaController!, seq: Int, mediaItemBundle: Bundle!): Unit

setMediaItemWithResetPosition

fun setMediaItemWithResetPosition(
    caller: IMediaController!,
    seq: Int,
    mediaItemBundle: Bundle!,
    resetPosition: Boolean
): Unit

setMediaItemWithStartPosition

fun setMediaItemWithStartPosition(
    caller: IMediaController!,
    seq: Int,
    mediaItemBundle: Bundle!,
    startPositionMs: Long
): Unit

setMediaItems

fun setMediaItems(caller: IMediaController!, seq: Int, mediaItems: IBinder!): Unit

setMediaItemsWithResetPosition

fun setMediaItemsWithResetPosition(
    caller: IMediaController!,
    seq: Int,
    mediaItems: IBinder!,
    resetPosition: Boolean
): Unit

setMediaItemsWithStartIndex

fun setMediaItemsWithStartIndex(
    caller: IMediaController!,
    seq: Int,
    mediaItems: IBinder!,
    startIndex: Int,
    startPositionMs: Long
): Unit

setPlayWhenReady

fun setPlayWhenReady(
    caller: IMediaController!,
    seq: Int,
    playWhenReady: Boolean
): Unit

setPlaybackParameters

fun setPlaybackParameters(
    caller: IMediaController!,
    seq: Int,
    playbackParametersBundle: Bundle!
): Unit

setPlaybackSpeed

fun setPlaybackSpeed(caller: IMediaController!, seq: Int, speed: Float): Unit

setPlaylistMetadata

fun setPlaylistMetadata(
    caller: IMediaController!,
    seq: Int,
    playlistMetadata: Bundle!
): Unit

setRating

fun setRating(caller: IMediaController!, seq: Int, rating: Bundle!): Unit

setRatingWithMediaId

fun setRatingWithMediaId(
    caller: IMediaController!,
    seq: Int,
    mediaId: String!,
    rating: Bundle!
): Unit

setRepeatMode

fun setRepeatMode(caller: IMediaController!, seq: Int, repeatMode: Int): Unit

setShuffleModeEnabled

fun setShuffleModeEnabled(
    caller: IMediaController!,
    seq: Int,
    shuffleModeEnabled: Boolean
): Unit

setTrackSelectionParameters

fun setTrackSelectionParameters(
    caller: IMediaController!,
    seq: Int,
    trackSelectionParametersBundle: Bundle!
): Unit

setVideoSurface

fun setVideoSurface(caller: IMediaController!, seq: Int, surface: Surface!): Unit

setVolume

fun setVolume(caller: IMediaController!, seq: Int, volume: Float): Unit

stop

fun stop(caller: IMediaController!, seq: Int): Unit

subscribe

fun subscribe(
    caller: IMediaController!,
    seq: Int,
    parentId: String!,
    libraryParams: Bundle!
): Unit

unsubscribe

fun unsubscribe(caller: IMediaController!, seq: Int, parentId: String!): Unit