MediaController.PlaybackInfo

public static final class MediaController.PlaybackInfo
extends Object implements VersionedParcelable

java.lang.Object
   ↳ androidx.media2.session.MediaController.PlaybackInfo


Holds information about the way volume is handled for this session.

Summary

Constants

int PLAYBACK_TYPE_LOCAL

The session uses local playback.

int PLAYBACK_TYPE_REMOTE

The session uses remote playback.

Public methods

boolean equals(Object obj)
AudioAttributesCompat getAudioAttributes()

Gets the audio attributes for this session.

int getControlType()

Gets the type of volume control that can be used.

int getCurrentVolume()

Gets the current volume for this session.

int getMaxVolume()

Gets the maximum volume that may be set for this session.

int getPlaybackType()

Gets the type of playback which affects volume handling.

int hashCode()

Inherited methods

Constants

PLAYBACK_TYPE_LOCAL

public static final int PLAYBACK_TYPE_LOCAL

The session uses local playback.

Constant Value: 1 (0x00000001)

PLAYBACK_TYPE_REMOTE

public static final int PLAYBACK_TYPE_REMOTE

The session uses remote playback.

Constant Value: 2 (0x00000002)