MediaRouter.ProviderInfo

class MediaRouter.ProviderInfo


Provides information about a media route provider.

This object may be used to determine which media route provider has published a particular route.

Summary

Public functions

ComponentName

Gets the component name of the media route provider.

String

Gets the package name of the media route provider.

MediaRouteProvider

Gets the provider's underlying MediaRouteProvider instance.

(Mutable)List<MediaRouter.RouteInfo!>

Gets the routes published by this route provider.

String

Public functions

getComponentName

Added in 1.1.0
fun getComponentName(): ComponentName

Gets the component name of the media route provider.

getPackageName

Added in 1.1.0
fun getPackageName(): String

Gets the package name of the media route provider.

getProviderInstance

Added in 1.1.0
@MainThread
fun getProviderInstance(): MediaRouteProvider

Gets the provider's underlying MediaRouteProvider instance.

Must be called on the main thread.

getRoutes

Added in 1.1.0
@MainThread
fun getRoutes(): (Mutable)List<MediaRouter.RouteInfo!>

Gets the routes published by this route provider.

Must be called on the main thread.

toString

fun toString(): String