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!

Converts this object to a bundle for serialization.

Boolean
equals(other: Any?)

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

Boolean

Returns true if active scanning should be performed.

Boolean

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

String

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

asBundle

fun asBundle(): Bundle!

Converts this object to a bundle for serialization.

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

equals

fun equals(other: Any?): Boolean

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

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.

toString

fun toString(): String