IMediaSession.Stub


public abstract class IMediaSession.Stub extends Binder implements IMediaSession


Local-side IPC implementation stub class.

Summary

Public constructors

Construct the stub at attach it to the interface.

Public methods

IBinder
static IMediaSession

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

boolean
onTransact(int code, Parcel data, Parcel reply, int flags)

Inherited Constants

From android.os.IBinder
static final int
DUMP_TRANSACTION = 1598311760
static final int
static final int
static final int
static final int
static final int
LIKE_TRANSACTION = 1598835019
static final int
PING_TRANSACTION = 1599098439
static final int
TWEET_TRANSACTION = 1599362900
From androidx.media3.session.IMediaSession
static final String
DESCRIPTOR = "androidx.media3.session.IMediaSession"

Inherited methods

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

Public constructors

Stub

public Stub()

Construct the stub at attach it to the interface.

Public methods

asBinder

public IBinder asBinder()

asInterface

public static IMediaSession asInterface(IBinder obj)

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

onTransact

public boolean onTransact(int code, Parcel data, Parcel reply, int flags)