MediaRouteProviderDescriptor

class MediaRouteProviderDescriptor


Describes the state of a media route provider and the routes that it publishes.

This object is immutable once created using a Builder instance.

Summary

Public functions

Bundle

Converts this object to a bundle for serialization.

java-static MediaRouteProviderDescriptor?
fromBundle(bundle: Bundle?)

Creates an instance from a bundle.

(Mutable)List<MediaRouteDescriptor!>

Gets the list of all routes that this provider has published.

Boolean

Returns true if the route provider descriptor and all of the routes that it contains have all of the required fields.

Boolean

Indicates whether a MediaRouteProvider supports dynamic group route.

String

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.

fromBundle

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

Creates an instance from a bundle.

Parameters
bundle: Bundle?

The bundle, or null if none.

Returns
MediaRouteProviderDescriptor?

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

getRoutes

Added in 1.1.0
fun getRoutes(): (Mutable)List<MediaRouteDescriptor!>

Gets the list of all routes that this provider has published.

If it doesn't have any routes, it returns an empty list.

isValid

Added in 1.1.0
fun isValid(): Boolean

Returns true if the route provider descriptor and all of the routes that it contains have all of the required fields.

This verification is deep. If the provider descriptor is known to be valid then it is not necessary to call this method on each of its routes.

supportsDynamicGroupRoute

Added in 1.1.0
fun supportsDynamicGroupRoute(): Boolean

Indicates whether a MediaRouteProvider supports dynamic group route.

toString

fun toString(): String