MediaRouteDiscoveryRequest
class MediaRouteDiscoveryRequest
kotlin.Any | |
↳ | androidx.mediarouter.media.MediaRouteDiscoveryRequest |
Describes the kinds of routes that the media router would like to discover and whether to perform active scanning.
This object is immutable once created.
Summary
Public constructors | |
---|---|
<init>(selector: MediaRouteSelector!, activeScan: Boolean) Creates a media route discovery request. |
Public methods | |
---|---|
Bundle! |
asBundle() Converts this object to a bundle for serialization. |
Boolean | |
static MediaRouteDiscoveryRequest! |
fromBundle(bundle: Bundle!) Creates an instance from a bundle. |
MediaRouteSelector! |
Gets the route selector that specifies the kinds of routes to discover. |
Int |
hashCode() |
Boolean |
Returns true if active scanning should be performed. |
Boolean |
isValid() Returns true if the discovery request has all of the required fields. |
String |
toString() |
Public constructors
<init>
MediaRouteDiscoveryRequest(
selector: MediaRouteSelector!,
activeScan: Boolean)
Creates a media route discovery request.
Parameters | |
---|---|
selector |
MediaRouteSelector!: The route selector that specifies the kinds of routes to discover. |
activeScan |
Boolean: True if active scanning should be performed. |
Public methods
asBundle
fun asBundle(): Bundle!
Converts this object to a bundle for serialization.
Return | |
---|---|
Bundle! |
The contents of the object represented as a bundle. |
fromBundle
static fun fromBundle(bundle: Bundle!): MediaRouteDiscoveryRequest!
Creates an instance from a bundle.
Parameters | |
---|---|
bundle |
Bundle!: The bundle, or null if none. |
Return | |
---|---|
MediaRouteDiscoveryRequest! |
The new instance, or null if the bundle was null. |
getSelector
fun getSelector(): MediaRouteSelector!
Gets the route selector that specifies the kinds of routes to discover.
hashCode
fun hashCode(): Int
isValid
fun isValid(): Boolean
Returns true if the discovery request has all of the required fields.
toString
fun toString(): String