IMediaSession.Stub


abstract class IMediaSession.Stub : Binder, IMediaSession


Local-side IPC implementation stub class.

Summary

Public constructors

Construct the stub at attach it to the interface.

Public functions

IBinder!
java-static IMediaSession!

Cast an IBinder object into an androidx.media3.session.IMediaSession interface, generating a proxy if needed.

Boolean
onTransact(code: Int, data: Parcel!, reply: Parcel!, flags: Int)

Inherited Constants

From android.os.IBinder
const Int
DUMP_TRANSACTION = 1598311760
const Int
const Int
const Int
const Int
const Int
LIKE_TRANSACTION = 1598835019
const Int
PING_TRANSACTION = 1599098439
const Int
TWEET_TRANSACTION = 1599362900
From androidx.media3.session.IMediaSession
const String!
DESCRIPTOR = "androidx.media3.session.IMediaSession"

Inherited functions

From android.os.Binder
Unit
attachInterface(owner: IInterface!, descriptor: String!)
native java-static Long
native java-static Long
Unit
dump(fd: FileDescriptor!, args: Array<String!>!)
Unit
native java-static Unit
native java-static Int
native java-static Int
java-static Int
java-static UserHandle!
native java-static Int
String!
Boolean
java-static Unit
Unit
linkToDeath(recipient: IBinder.DeathRecipient!, flags: Int)
Boolean
IInterface!
native java-static Unit
native java-static Unit
native java-static Long
Boolean
transact(code: Int, data: Parcel!, reply: Parcel!, flags: Int)
Boolean
unlinkToDeath(recipient: IBinder.DeathRecipient!, flags: Int)
From android.os.IBinder
From androidx.media3.session.IMediaSession
abstract Unit
addMediaItem(caller: IMediaController!, seq: Int, mediaItemBundle: Bundle!)
abstract Unit
addMediaItemWithIndex(
    caller: IMediaController!,
    seq: Int,
    index: Int,
    mediaItemBundle: Bundle!
)
abstract Unit
addMediaItems(caller: IMediaController!, seq: Int, mediaItems: IBinder!)
abstract Unit
addMediaItemsWithIndex(
    caller: IMediaController!,
    seq: Int,
    index: Int,
    mediaItems: IBinder!
)
abstract Unit
abstract Unit
connect(caller: IMediaController!, seq: Int, connectionRequest: Bundle!)
abstract Unit
abstract Unit
decreaseDeviceVolumeWithFlags(
    caller: IMediaController!,
    seq: Int,
    flags: Int
)
abstract Unit
abstract Unit
getChildren(
    caller: IMediaController!,
    seq: Int,
    parentId: String!,
    page: Int,
    pageSize: Int,
    libraryParams: Bundle!
)
abstract Unit
getItem(caller: IMediaController!, seq: Int, mediaId: String!)
abstract Unit
getLibraryRoot(caller: IMediaController!, seq: Int, libraryParams: Bundle!)
abstract Unit
getSearchResult(
    caller: IMediaController!,
    seq: Int,
    query: String!,
    page: Int,
    pageSize: Int,
    libraryParams: Bundle!
)
abstract Unit
abstract Unit
increaseDeviceVolumeWithFlags(
    caller: IMediaController!,
    seq: Int,
    flags: Int
)
abstract Unit
moveMediaItem(
    caller: IMediaController!,
    seq: Int,
    currentIndex: Int,
    newIndex: Int
)
abstract Unit
moveMediaItems(
    caller: IMediaController!,
    seq: Int,
    fromIndex: Int,
    toIndex: Int,
    newIndex: Int
)
abstract Unit
onControllerResult(
    caller: IMediaController!,
    seq: Int,
    controllerResult: Bundle!
)
abstract Unit
onCustomCommand(
    caller: IMediaController!,
    seq: Int,
    sessionCommand: Bundle!,
    args: Bundle!
)
abstract Unit
pause(caller: IMediaController!, seq: Int)
abstract Unit
play(caller: IMediaController!, seq: Int)
abstract Unit
prepare(caller: IMediaController!, seq: Int)
abstract Unit
release(caller: IMediaController!, seq: Int)
abstract Unit
removeMediaItem(caller: IMediaController!, seq: Int, index: Int)
abstract Unit
removeMediaItems(
    caller: IMediaController!,
    seq: Int,
    fromIndex: Int,
    toIndex: Int
)
abstract Unit
replaceMediaItem(
    caller: IMediaController!,
    seq: Int,
    index: Int,
    mediaItemBundle: Bundle!
)
abstract Unit
replaceMediaItems(
    caller: IMediaController!,
    seq: Int,
    fromIndex: Int,
    toIndex: Int,
    mediaItems: IBinder!
)
abstract Unit
search(
    caller: IMediaController!,
    seq: Int,
    query: String!,
    libraryParams: Bundle!
)
abstract Unit
seekBack(caller: IMediaController!, seq: Int)
abstract Unit
seekForward(caller: IMediaController!, seq: Int)
abstract Unit
seekTo(caller: IMediaController!, seq: Int, positionMs: Long)
abstract Unit
abstract Unit
seekToDefaultPositionWithMediaItemIndex(
    caller: IMediaController!,
    seq: Int,
    mediaItemIndex: Int
)
abstract Unit
seekToNext(caller: IMediaController!, seq: Int)
abstract Unit
abstract Unit
abstract Unit
abstract Unit
seekToWithMediaItemIndex(
    caller: IMediaController!,
    seq: Int,
    mediaItemIndex: Int,
    positionMs: Long
)
abstract Unit
setAudioAttributes(
    caller: IMediaController!,
    seq: Int,
    audioAttributes: Bundle!,
    handleAudioFocus: Boolean
)
abstract Unit
setDeviceMuted(caller: IMediaController!, seq: Int, muted: Boolean)
abstract Unit
setDeviceMutedWithFlags(
    caller: IMediaController!,
    seq: Int,
    muted: Boolean,
    flags: Int
)
abstract Unit
setDeviceVolume(caller: IMediaController!, seq: Int, volume: Int)
abstract Unit
setDeviceVolumeWithFlags(
    caller: IMediaController!,
    seq: Int,
    volume: Int,
    flags: Int
)
abstract Unit
setMediaItem(caller: IMediaController!, seq: Int, mediaItemBundle: Bundle!)
abstract Unit
setMediaItemWithResetPosition(
    caller: IMediaController!,
    seq: Int,
    mediaItemBundle: Bundle!,
    resetPosition: Boolean
)
abstract Unit
setMediaItemWithStartPosition(
    caller: IMediaController!,
    seq: Int,
    mediaItemBundle: Bundle!,
    startPositionMs: Long
)
abstract Unit
setMediaItems(caller: IMediaController!, seq: Int, mediaItems: IBinder!)
abstract Unit
setMediaItemsWithResetPosition(
    caller: IMediaController!,
    seq: Int,
    mediaItems: IBinder!,
    resetPosition: Boolean
)
abstract Unit
setMediaItemsWithStartIndex(
    caller: IMediaController!,
    seq: Int,
    mediaItems: IBinder!,
    startIndex: Int,
    startPositionMs: Long
)
abstract Unit
setPlayWhenReady(
    caller: IMediaController!,
    seq: Int,
    playWhenReady: Boolean
)
abstract Unit
setPlaybackParameters(
    caller: IMediaController!,
    seq: Int,
    playbackParametersBundle: Bundle!
)
abstract Unit
setPlaybackSpeed(caller: IMediaController!, seq: Int, speed: Float)
abstract Unit
setPlaylistMetadata(
    caller: IMediaController!,
    seq: Int,
    playlistMetadata: Bundle!
)
abstract Unit
setRating(caller: IMediaController!, seq: Int, rating: Bundle!)
abstract Unit
setRatingWithMediaId(
    caller: IMediaController!,
    seq: Int,
    mediaId: String!,
    rating: Bundle!
)
abstract Unit
setRepeatMode(caller: IMediaController!, seq: Int, repeatMode: Int)
abstract Unit
setShuffleModeEnabled(
    caller: IMediaController!,
    seq: Int,
    shuffleModeEnabled: Boolean
)
abstract Unit
setTrackSelectionParameters(
    caller: IMediaController!,
    seq: Int,
    trackSelectionParametersBundle: Bundle!
)
abstract Unit
setVideoSurface(caller: IMediaController!, seq: Int, surface: Surface!)
abstract Unit
setVolume(caller: IMediaController!, seq: Int, volume: Float)
abstract Unit
stop(caller: IMediaController!, seq: Int)
abstract Unit
subscribe(
    caller: IMediaController!,
    seq: Int,
    parentId: String!,
    libraryParams: Bundle!
)
abstract Unit
unsubscribe(caller: IMediaController!, seq: Int, parentId: String!)

Public constructors

Stub

Stub()

Construct the stub at attach it to the interface.

Public functions

asBinder

fun asBinder(): IBinder!

asInterface

java-static fun asInterface(obj: IBinder!): IMediaSession!

Cast an IBinder object into an androidx.media3.session.IMediaSession interface, generating a proxy if needed.

onTransact

fun onTransact(code: Int, data: Parcel!, reply: Parcel!, flags: Int): Boolean