public class

IMediaController.Default

extends java.lang.Object

implements IMediaController

 java.lang.Object

↳androidx.media3.session.IMediaController.Default

Overview

Default implementation for IMediaController.

Summary

Constructors
publicDefault()

Methods
public android.os.IBinderasBinder()

public voidonAvailableCommandsChangedFromPlayer(int seq, android.os.Bundle commandsBundle)

public voidonAvailableCommandsChangedFromSession(int seq, android.os.Bundle sessionCommandsBundle, android.os.Bundle playerCommandsBundle)

public voidonChildrenChanged(int seq, java.lang.String parentId, int itemCount, android.os.Bundle libraryParams)

public voidonConnected(int seq, android.os.Bundle connectionResult)

public voidonCustomCommand(int seq, android.os.Bundle command, android.os.Bundle args)

public voidonDisconnected(int seq)

public voidonError(int seq, android.os.Bundle sessionError)

public voidonExtrasChanged(int seq, android.os.Bundle extras)

public voidonLibraryResult(int seq, android.os.Bundle libraryResult)

public voidonPeriodicSessionPositionInfoChanged(int seq, android.os.Bundle sessionPositionInfo)

public voidonPlayerInfoChanged(int seq, android.os.Bundle playerInfoBundle, boolean isTimelineExcluded)

Deprecated: Use onPlayerInfoChangedWithExclusions from MediaControllerStub#VERSION_INT=2.

public voidonPlayerInfoChangedWithExclusions(int seq, android.os.Bundle playerInfoBundle, android.os.Bundle playerInfoExclusions)

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

public voidonRenderedFirstFrame(int seq)

public voidonSearchResultChanged(int seq, java.lang.String query, int itemCount, android.os.Bundle libraryParams)

public voidonSessionActivityChanged(int seq, android.app.PendingIntent pendingIntent)

public voidonSessionResult(int seq, android.os.Bundle sessionResult)

public voidonSetCustomLayout(int seq, java.util.List<android.os.Bundle> commandButtonList)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Default()

Methods

public void onConnected(int seq, android.os.Bundle connectionResult)

public void onSessionResult(int seq, android.os.Bundle sessionResult)

public void onLibraryResult(int seq, android.os.Bundle libraryResult)

public void onSetCustomLayout(int seq, java.util.List<android.os.Bundle> commandButtonList)

public void onCustomCommand(int seq, android.os.Bundle command, android.os.Bundle args)

public void onDisconnected(int seq)

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

Deprecated: Use onPlayerInfoChangedWithExclusions from MediaControllerStub#VERSION_INT=2.

public void onPlayerInfoChangedWithExclusions(int seq, android.os.Bundle playerInfoBundle, android.os.Bundle playerInfoExclusions)

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

public void onPeriodicSessionPositionInfoChanged(int seq, android.os.Bundle sessionPositionInfo)

public void onAvailableCommandsChangedFromPlayer(int seq, android.os.Bundle commandsBundle)

public void onAvailableCommandsChangedFromSession(int seq, android.os.Bundle sessionCommandsBundle, android.os.Bundle playerCommandsBundle)

public void onRenderedFirstFrame(int seq)

public void onExtrasChanged(int seq, android.os.Bundle extras)

public void onSessionActivityChanged(int seq, android.app.PendingIntent pendingIntent)

public void onError(int seq, android.os.Bundle sessionError)

public void onChildrenChanged(int seq, java.lang.String parentId, int itemCount, android.os.Bundle libraryParams)

public void onSearchResultChanged(int seq, java.lang.String query, int itemCount, android.os.Bundle libraryParams)

public android.os.IBinder asBinder()