MediaRouter.ProviderInfo
public final 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 methods |
|
|---|---|
@NonNull ComponentName |
Gets the component name of the media route provider. |
@NonNull String |
Gets the package name of the media route provider. |
@NonNull MediaRouteProvider |
Gets the provider's underlying |
@NonNull List<MediaRouter.RouteInfo> |
Gets the |
@NonNull String |
toString() |
Public methods
getComponentName
public @NonNull ComponentName getComponentName()
Gets the component name of the media route provider.
getPackageName
public @NonNull String getPackageName()
Gets the package name of the media route provider.
getProviderInstance
@MainThread
public @NonNull MediaRouteProvider getProviderInstance()
Gets the provider's underlying MediaRouteProvider instance.
Must be called on the main thread.
getRoutes
@MainThread
public @NonNull List<MediaRouter.RouteInfo> getRoutes()
Gets the routes published by this route provider.
Must be called on the main thread.