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 MediaRouteProvider instance.

@NonNull List<MediaRouter.RouteInfo>

Gets the routes published by this route provider.

@NonNull String

Public methods

getComponentName

Added in 1.1.0
public @NonNull ComponentName getComponentName()

Gets the component name of the media route provider.

getPackageName

Added in 1.1.0
public @NonNull String getPackageName()

Gets the package name of the media route provider.

getProviderInstance

Added in 1.1.0
@MainThread
public @NonNull MediaRouteProvider getProviderInstance()

Gets the provider's underlying MediaRouteProvider instance.

Must be called on the main thread.

getRoutes

Added in 1.1.0
@MainThread
public @NonNull List<MediaRouter.RouteInfogetRoutes()

Gets the routes published by this route provider.

Must be called on the main thread.

toString

public @NonNull String toString()