Most visited

Recently visited

MediaControllerCompat.PlaybackInfo

public static final class MediaControllerCompat.PlaybackInfo
extends Object

java.lang.Object
    android.support.v4.media.session.MediaControllerCompat.PlaybackInfo


掌握有关此会话的卷处理方式的信息。

摘要(Summary)

常量(Constants)

int PLAYBACK_TYPE_LOCAL

会话使用本地播放。

int PLAYBACK_TYPE_REMOTE

会话使用远程播放。

公共方法(Public methods)

int getAudioStream()

获取目前正在控制音量的流。

int getCurrentVolume()

获取本次会话的当前音量。

int getMaxVolume()

获取可能为此会话设置的最大音量。

int getPlaybackType()

获取本地或远程的卷处理类型。

int getVolumeControl()

获取可以使用的音量控制类型。

继承方法(Inherited methods)

From class java.lang.Object

常量(Constants)

PLAYBACK_TYPE_LOCAL

int PLAYBACK_TYPE_LOCAL

会话使用本地播放。

常数值:1(0x00000001)

PLAYBACK_TYPE_REMOTE

int PLAYBACK_TYPE_REMOTE

会话使用远程播放。

常量值:2(0x00000002)

公共方法(Public methods)

getAudioStream

int getAudioStream ()

获取目前正在控制音量的流。 当卷类型为PLAYBACK_TYPE_REMOTE此值不具有含义,应予以忽略。

返回(Returns)
int The stream this session is playing on.

getCurrentVolume

int getCurrentVolume ()

获取本次会话的当前音量。

返回(Returns)
int The current volume where this session is playing.

getMaxVolume

int getMaxVolume ()

获取可能为此会话设置的最大音量。

返回(Returns)
int The maximum allowed volume where this session is playing.

getPlaybackType

int getPlaybackType ()

获取本地或远程的卷处理类型。 之一:

返回(Returns)
int The type of volume handling this session is using.

getVolumeControl

int getVolumeControl ()

获取可以使用的音量控制类型。 之一:

返回(Returns)
int The type of volume control that may be used with this session.

Hooray!