MediaRouteDiscoveryRequest


class 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

MediaRouteDiscoveryRequest(
    selector: MediaRouteSelector,
    activeScan: Boolean
)

Creates a media route discovery request.

Public functions

Bundle

Converts this object to a bundle for serialization.

Boolean
equals(o: Any!)
java-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

MediaRouteDiscoveryRequest

Added in 1.1.0
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 functions

asBundle

Added in 1.1.0
fun asBundle(): Bundle

Converts this object to a bundle for serialization.

Returns
Bundle

The contents of the object represented as a bundle.

equals

fun equals(o: Any!): Boolean

fromBundle

Added in 1.1.0
java-static fun fromBundle(bundle: Bundle?): MediaRouteDiscoveryRequest?

Creates an instance from a bundle.

Parameters
bundle: Bundle?

The bundle, or null if none.

Returns
MediaRouteDiscoveryRequest?

The new instance, or null if the bundle was null.

getSelector

Added in 1.1.0
fun getSelector(): MediaRouteSelector

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

hashCode

fun hashCode(): Int

isActiveScan

Added in 1.1.0
fun isActiveScan(): Boolean

Returns true if active scanning should be performed.

isValid

Added in 1.1.0
fun isValid(): Boolean

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

toString

fun toString(): String