RouteInfo
class RouteInfo
kotlin.Any | |
↳ | androidx.mediarouter.media.MediaRouter.RouteInfo |
Provides information about a media route.
Each media route has a list of media control
intent filters
that describe the capabilities of the route and the manner in which it is used and controlled.
Summary
Constants | |
---|---|
static Int |
A connection state indicating the route is connected. |
static Int |
A connection state indicating the route is in the process of connecting and is not yet ready for use. |
static Int |
The default connection state indicating the route is disconnected. |
static Int |
A receiver device type of the route indicating the presentation of the media is happening on a speaker. |
static Int |
A receiver device type of the route indicating the presentation of the media is happening on a TV. |
static Int |
The default playback type, "local", indicating the presentation of the media is happening on the same device (e.g. a phone, a tablet) as where it is controlled from. |
static Int |
A playback type indicating the presentation of the media is happening on a different device (i.e. the remote device) than where it is controlled from. |
static Int |
Playback information indicating the playback volume is fixed, i. |
static Int |
Playback information indicating the playback volume is variable and can be controlled from this object. |
Public methods | |
---|---|
open Boolean |
Gets whether this route supports disconnecting without interrupting playback. |
open Int |
Gets the connection state of the route. |
open MutableList<IntentFilter!>! |
Gets a list of |
open String? |
Gets the user-visible description of the route. |
open Int |
Gets the type of the receiver device associated with this route. |
open Bundle? |
Gets a collection of extra properties about this route that were supplied by its media route provider, or null if none. |
open Uri! |
Gets the URI of the icon representing this route. |
open String |
getId() Gets the unique id of the route. |
open String! |
getName() Gets the user-visible name of the route. |
open Int |
Gets the audio stream over which the playback associated with this route is performed. |
open Int |
Gets the type of playback associated with this route. |
open Display? |
Gets the |
open MediaRouter.ProviderInfo! |
Gets information about the provider of this media route. |
open IntentSender? |
Gets an intent sender for launching a settings activity for this route. |
open Int |
Gets the current volume for this route. |
open Int |
Gets information about how volume is handled on the route. |
open Int |
Gets the maximum volume at which the playback associated with this route is performed. |
open Boolean |
Returns true if this route is a bluetooth route. |
open Boolean |
Returns true if the route is in the process of connecting and is not yet ready for use. |
open Boolean |
Returns true if this route is the default route. |
open Boolean |
Returns true if this route is the default route and the device speaker. |
open Boolean |
Returns true if this route is enabled and may be selected. |
open Boolean |
Returns true if this route is currently selected. |
open Boolean |
matchesSelector(@NonNull selector: MediaRouteSelector) Returns true if the route supports at least one of the capabilities described by a media route selector. |
open Unit |
requestSetVolume(volume: Int) Requests a volume change for this route asynchronously. |
open Unit |
requestUpdateVolume(delta: Int) Requests an incremental volume update for this route asynchronously. |
open Unit |
select() Selects this media route. |
open Unit |
sendControlRequest(@NonNull intent: Intent, @Nullable callback: MediaRouter.ControlRequestCallback?) Sends a |
open Boolean |
supportsControlAction(@NonNull category: String, @NonNull action: String) Returns true if the route supports the specified |
open Boolean |
supportsControlCategory(@NonNull category: String) Returns true if the route supports the specified |
open Boolean |
supportsControlRequest(@NonNull intent: Intent) Returns true if the route supports the specified |