MediaRouteProviderDescriptor
class MediaRouteProviderDescriptor
kotlin.Any | |
↳ | androidx.mediarouter.media.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
Nested classes | |
---|---|
Builder for |
Public methods | |
---|---|
Bundle! |
asBundle() Converts this object to a bundle for serialization. |
static MediaRouteProviderDescriptor! |
fromBundle(bundle: Bundle!) Creates an instance from a bundle. |
MutableList<MediaRouteDescriptor!> |
Gets the list of all routes that this provider has published. |
Boolean |
isValid() 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 |
String |
toString() |
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!): MediaRouteProviderDescriptor!
Creates an instance from a bundle.
Parameters | |
---|---|
bundle |
Bundle!: The bundle, or null if none. |
Return | |
---|---|
MediaRouteProviderDescriptor! |
The new instance, or null if the bundle was null. |
getRoutes
@NonNull fun getRoutes(): MutableList<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
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 isValid
on each of its routes.
supportsDynamicGroupRoute
fun supportsDynamicGroupRoute(): Boolean
Indicates whether a MediaRouteProvider
supports dynamic group route.
toString
fun toString(): String