public class

RemoteSessionPlayer.Callback

extends SessionPlayer.PlayerCallback

 java.lang.Object

androidx.media2.SessionPlayer.PlayerCallback

↳androidx.media2.RemoteSessionPlayer.Callback

Summary

Constructors
publicCallback()

Methods
public voidonVolumeChanged(RemoteSessionPlayer player2, int volume)

Called to indicate that the volume has changed.

from SessionPlayer.PlayerCallbackonAudioAttributesChanged, onBufferingStateChanged, onCurrentMediaItemChanged, onPlaybackCompleted, onPlaybackSpeedChanged, onPlayerStateChanged, onPlaylistChanged, onPlaylistMetadataChanged, onRepeatModeChanged, onSeekCompleted, onShuffleModeChanged
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Callback()

Methods

public void onVolumeChanged(RemoteSessionPlayer player2, int volume)

Called to indicate that the volume has changed.

Parameters:

player2: the player that has completed volume changes.
volume: the new volume

See also: RemoteSessionPlayer.setVolume(int)