MediaRouter.RouteGroup
public
static
class
MediaRouter.RouteGroup
extends MediaRouter.RouteInfo
java.lang.Object | ||
↳ | android.media.MediaRouter.RouteInfo | |
↳ | android.media.MediaRouter.RouteGroup |
Information about a route that consists of multiple other routes in a group.
Summary
Inherited constants |
---|
Public methods | |
---|---|
void
|
addRoute(MediaRouter.RouteInfo route)
Add a route to this group. |
void
|
addRoute(MediaRouter.RouteInfo route, int insertAt)
Add a route to this group before the specified index. |
MediaRouter.RouteInfo
|
getRouteAt(int index)
Return the route in this group at the specified index |
int
|
getRouteCount()
|
void
|
removeRoute(MediaRouter.RouteInfo route)
Remove a route from this group. |
void
|
removeRoute(int index)
Remove the route at the specified index from this group. |
void
|
requestSetVolume(int volume)
Request a volume change for this route. |
void
|
requestUpdateVolume(int direction)
Request an incremental volume update for this route. |
void
|
setIconDrawable(Drawable icon)
Set an icon that will be used to represent this group. |
void
|
setIconResource(int resId)
Set an icon that will be used to represent this group. |
String
|
toString()
Returns a string representation of the object. |
Inherited methods | |
---|---|
Public methods
addRoute
public void addRoute (MediaRouter.RouteInfo route)
Add a route to this group. The route must not currently belong to another group.
Parameters | |
---|---|
route |
MediaRouter.RouteInfo : route to add to this group
|
addRoute
public void addRoute (MediaRouter.RouteInfo route, int insertAt)
Add a route to this group before the specified index.
Parameters | |
---|---|
route |
MediaRouter.RouteInfo : route to add |
insertAt |
int : insert the new route before this index
|
getRouteAt
public MediaRouter.RouteInfo getRouteAt (int index)
Return the route in this group at the specified index
Parameters | |
---|---|
index |
int : Index to fetch |
Returns | |
---|---|
MediaRouter.RouteInfo |
The route at index |
getRouteCount
public int getRouteCount ()
Returns | |
---|---|
int |
The number of routes in this group |
removeRoute
public void removeRoute (MediaRouter.RouteInfo route)
Remove a route from this group.
Parameters | |
---|---|
route |
MediaRouter.RouteInfo : route to remove
|
removeRoute
public void removeRoute (int index)
Remove the route at the specified index from this group.
Parameters | |
---|---|
index |
int : index of the route to remove
|
requestSetVolume
public void requestSetVolume (int volume)
Request a volume change for this route.
Parameters | |
---|---|
volume |
int : value between 0 and getVolumeMax
|
requestUpdateVolume
public void requestUpdateVolume (int direction)
Request an incremental volume update for this route.
Parameters | |
---|---|
direction |
int : Delta to apply to the current volume
|
setIconDrawable
public void setIconDrawable (Drawable icon)
Set an icon that will be used to represent this group. The system may use this icon in picker UIs or similar.
Parameters | |
---|---|
icon |
Drawable : icon drawable to use to represent this group
|
setIconResource
public void setIconResource (int resId)
Set an icon that will be used to represent this group. The system may use this icon in picker UIs or similar.
Parameters | |
---|---|
resId |
int : Resource ID of an icon drawable to use to represent this group
|
toString
public String toString ()
Returns a string representation of the object. In general, the
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Returns | |
---|---|
String |
a string representation of the object. |
Annotations
Interfaces
- AudioManager.OnAudioFocusChangeListener
- AudioRecord.OnRecordPositionUpdateListener
- AudioRecord.OnRoutingChangedListener
- AudioRouting
- AudioRouting.OnRoutingChangedListener
- AudioTrack.OnPlaybackPositionUpdateListener
- AudioTrack.OnRoutingChangedListener
- ImageReader.OnImageAvailableListener
- ImageWriter.OnImageReleasedListener
- JetPlayer.OnJetEventListener
- MediaCas.EventListener
- MediaCodec.OnFrameRenderedListener
- MediaDrm.OnEventListener
- MediaDrm.OnExpirationUpdateListener
- MediaDrm.OnKeyStatusChangeListener
- MediaPlayer.OnBufferingUpdateListener
- MediaPlayer.OnCompletionListener
- MediaPlayer.OnDrmConfigHelper
- MediaPlayer.OnDrmInfoListener
- MediaPlayer.OnDrmPreparedListener
- MediaPlayer.OnErrorListener
- MediaPlayer.OnInfoListener
- MediaPlayer.OnMediaTimeDiscontinuityListener
- MediaPlayer.OnPreparedListener
- MediaPlayer.OnSeekCompleteListener
- MediaPlayer.OnSubtitleDataListener
- MediaPlayer.OnTimedMetaDataAvailableListener
- MediaPlayer.OnTimedTextListener
- MediaPlayer.OnVideoSizeChangedListener
- MediaRecorder.OnErrorListener
- MediaRecorder.OnInfoListener
- MediaScannerConnection.MediaScannerConnectionClient
- MediaScannerConnection.OnScanCompletedListener
- MediaSync.OnErrorListener
- RemoteControlClient.OnGetPlaybackPositionListener
- RemoteControlClient.OnMetadataUpdateListener
- RemoteControlClient.OnPlaybackPositionUpdateListener
- RemoteController.OnClientUpdateListener
- SoundPool.OnLoadCompleteListener
- VolumeAutomation
Classes
- AsyncPlayer
- AudioAttributes
- AudioAttributes.Builder
- AudioDeviceCallback
- AudioDeviceInfo
- AudioFocusRequest
- AudioFocusRequest.Builder
- AudioFormat
- AudioFormat.Builder
- AudioManager
- AudioManager.AudioPlaybackCallback
- AudioManager.AudioRecordingCallback
- AudioPlaybackConfiguration
- AudioPresentation
- AudioRecord
- AudioRecord.Builder
- AudioRecord.MetricsConstants
- AudioRecordingConfiguration
- AudioTimestamp
- AudioTrack
- AudioTrack.Builder
- AudioTrack.MetricsConstants
- CamcorderProfile
- CameraProfile
- DrmInitData
- DrmInitData.SchemeInitData
- ExifInterface
- FaceDetector
- FaceDetector.Face
- Image
- Image.Plane
- ImageReader
- ImageWriter
- JetPlayer
- MediaActionSound
- MediaCas
- MediaCas.PluginDescriptor
- MediaCas.Session
- MediaCodec
- MediaCodec.BufferInfo
- MediaCodec.Callback
- MediaCodec.CryptoInfo
- MediaCodec.CryptoInfo.Pattern
- MediaCodec.MetricsConstants
- MediaCodecInfo
- MediaCodecInfo.AudioCapabilities
- MediaCodecInfo.CodecCapabilities
- MediaCodecInfo.CodecProfileLevel
- MediaCodecInfo.EncoderCapabilities
- MediaCodecInfo.VideoCapabilities
- MediaCodecList
- MediaCrypto
- MediaDataSource
- MediaDescrambler
- MediaDescription
- MediaDescription.Builder
- MediaDrm
- MediaDrm.CryptoSession
- MediaDrm.KeyRequest
- MediaDrm.KeyStatus
- MediaDrm.MetricsConstants
- MediaDrm.ProvisionRequest
- MediaExtractor
- MediaExtractor.CasInfo
- MediaExtractor.MetricsConstants
- MediaFormat
- MediaMetadata
- MediaMetadata.Builder
- MediaMetadataEditor
- MediaMetadataRetriever
- MediaMetadataRetriever.BitmapParams
- MediaMuxer
- MediaMuxer.OutputFormat
- MediaPlayer
- MediaPlayer.DrmInfo
- MediaPlayer.MetricsConstants
- MediaPlayer.TrackInfo
- MediaRecorder
- MediaRecorder.AudioEncoder
- MediaRecorder.AudioSource
- MediaRecorder.MetricsConstants
- MediaRecorder.OutputFormat
- MediaRecorder.VideoEncoder
- MediaRecorder.VideoSource
- MediaRouter
- MediaRouter.Callback
- MediaRouter.RouteCategory
- MediaRouter.RouteGroup
- MediaRouter.RouteInfo
- MediaRouter.SimpleCallback
- MediaRouter.UserRouteInfo
- MediaRouter.VolumeCallback
- MediaScannerConnection
- MediaSync
- MediaSync.Callback
- MediaSyncEvent
- MediaTimestamp
- MicrophoneInfo
- MicrophoneInfo.Coordinate3F
- PlaybackParams
- Rating
- RemoteControlClient
- RemoteControlClient.MetadataEditor
- RemoteController
- RemoteController.MetadataEditor
- Ringtone
- RingtoneManager
- SoundPool
- SoundPool.Builder
- SubtitleData
- SyncParams
- ThumbnailUtils
- TimedMetaData
- TimedText
- ToneGenerator
- VolumeProvider
- VolumeShaper
- VolumeShaper.Configuration
- VolumeShaper.Configuration.Builder
- VolumeShaper.Operation
Exceptions
- DeniedByServerException
- MediaCasException
- MediaCasException.DeniedByServerException
- MediaCasException.NotProvisionedException
- MediaCasException.ResourceBusyException
- MediaCasException.UnsupportedCasException
- MediaCasStateException
- MediaCodec.CodecException
- MediaCodec.CryptoException
- MediaCryptoException
- MediaDrm.MediaDrmStateException
- MediaDrmException
- MediaDrmResetException
- MediaPlayer.NoDrmSchemeException
- MediaPlayer.ProvisioningNetworkErrorException
- MediaPlayer.ProvisioningServerErrorException
- NotProvisionedException
- ResourceBusyException
- UnsupportedSchemeException