IMediaController.Default


public class IMediaController.Default implements IMediaController


Default implementation for IMediaController.

Summary

Public constructors

Public methods

IBinder
void
onAvailableCommandsChangedFromPlayer(int seq, Bundle commandsBundle)
void
onAvailableCommandsChangedFromSession(
    int seq,
    Bundle sessionCommandsBundle,
    Bundle playerCommandsBundle
)
void
onChildrenChanged(
    int seq,
    String parentId,
    int itemCount,
    Bundle libraryParams
)
void
onConnected(int seq, Bundle connectionResult)
void
onCustomCommand(int seq, Bundle command, Bundle args)
void
onDisconnected(int seq)
void
onError(int seq, Bundle sessionError)
void
onExtrasChanged(int seq, Bundle extras)
void
onLibraryResult(int seq, Bundle libraryResult)
void
onPeriodicSessionPositionInfoChanged(
    int seq,
    Bundle sessionPositionInfo
)
void
onPlayerInfoChanged(
    int seq,
    Bundle playerInfoBundle,
    boolean isTimelineExcluded
)

Deprecated: Use onPlayerInfoChangedWithExclusions from MediaControllerStub#VERSION_INT=2.

void
onPlayerInfoChangedWithExclusions(
    int seq,
    Bundle playerInfoBundle,
    Bundle playerInfoExclusions
)

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

void
void
onSearchResultChanged(
    int seq,
    String query,
    int itemCount,
    Bundle libraryParams
)
void
onSessionActivityChanged(int seq, PendingIntent pendingIntent)
void
onSessionResult(int seq, Bundle sessionResult)
void
onSetCustomLayout(int seq, List<Bundle> commandButtonList)
void
onSetMediaButtonPreferences(int seq, List<Bundle> commandButtonList)

Inherited Constants

From androidx.media3.session.IMediaController
static final String
DESCRIPTOR = "androidx.media3.session.IMediaController"

Public constructors

Default

public Default()

Public methods

asBinder

public IBinder asBinder()

onAvailableCommandsChangedFromPlayer

public void onAvailableCommandsChangedFromPlayer(int seq, Bundle commandsBundle)

onAvailableCommandsChangedFromSession

public void onAvailableCommandsChangedFromSession(
    int seq,
    Bundle sessionCommandsBundle,
    Bundle playerCommandsBundle
)

onChildrenChanged

public void onChildrenChanged(
    int seq,
    String parentId,
    int itemCount,
    Bundle libraryParams
)

onConnected

public void onConnected(int seq, Bundle connectionResult)

onCustomCommand

public void onCustomCommand(int seq, Bundle command, Bundle args)

onDisconnected

public void onDisconnected(int seq)

onError

public void onError(int seq, Bundle sessionError)

onExtrasChanged

public void onExtrasChanged(int seq, Bundle extras)

onLibraryResult

public void onLibraryResult(int seq, Bundle libraryResult)

onPeriodicSessionPositionInfoChanged

public void onPeriodicSessionPositionInfoChanged(
    int seq,
    Bundle sessionPositionInfo
)

onPlayerInfoChanged

public void onPlayerInfoChanged(
    int seq,
    Bundle playerInfoBundle,
    boolean isTimelineExcluded
)

Deprecated: Use onPlayerInfoChangedWithExclusions from MediaControllerStub#VERSION_INT=2.

onPlayerInfoChangedWithExclusions

public void onPlayerInfoChangedWithExclusions(
    int seq,
    Bundle playerInfoBundle,
    Bundle playerInfoExclusions
)

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

onRenderedFirstFrame

public void onRenderedFirstFrame(int seq)

onSearchResultChanged

public void onSearchResultChanged(
    int seq,
    String query,
    int itemCount,
    Bundle libraryParams
)

onSessionActivityChanged

public void onSessionActivityChanged(int seq, PendingIntent pendingIntent)

onSessionResult

public void onSessionResult(int seq, Bundle sessionResult)

onSetCustomLayout

public void onSetCustomLayout(int seq, List<Bundle> commandButtonList)

onSetMediaButtonPreferences

public void onSetMediaButtonPreferences(int seq, List<Bundle> commandButtonList)