Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

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
Int

Boolean
equals(other: Any?)

String

Bundle!

Converts this object to a bundle for serialization.

Boolean

Returns true if active scanning should be performed.

Boolean

Returns true if the discovery request has all of the required fields.

MediaRouteSelector!

Gets the route selector that specifies the kinds of routes to discover.

static MediaRouteDiscoveryRequest!
fromBundle(bundle: Bundle!)

Creates an instance from a bundle.

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 MediaRouteSelector!: True if active scanning should be performed.

Public methods

hashCode

fun hashCode(): Int

equals

fun equals(other: Any?): Boolean

toString

fun toString(): String

asBundle

fun asBundle(): Bundle!

Converts this object to a bundle for serialization.

Return
Bundle!: The contents of the object represented as a bundle.

isActiveScan

fun isActiveScan(): Boolean

Returns true if active scanning should be performed.

isValid

fun isValid(): Boolean

Returns true if the discovery request has all of the required fields.

getSelector

fun getSelector(): MediaRouteSelector!

Gets the route selector that specifies the kinds of routes to discover.

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.