FileDocCategorySizeDatePackage
SystemMediaRouteProvider.javaAPI DocAndroid 5.1 API34434Thu Mar 12 22:22:56 GMT 2015android.support.v7.media

SystemMediaRouteProvider

public abstract class SystemMediaRouteProvider extends MediaRouteProvider
Provides routes for built-in system destinations such as the local display and speaker. On Jellybean and newer platform releases, queries the framework MediaRouter for framework-provided routes and registers non-framework-provided routes as user routes.

Fields Summary
private static final String
TAG
public static final String
PACKAGE_NAME
public static final String
DEFAULT_ROUTE_ID
Constructors Summary
protected SystemMediaRouteProvider(android.content.Context context)


       
        super(context, new ProviderMetadata(new ComponentName(PACKAGE_NAME,
                SystemMediaRouteProvider.class.getName())));
    
Methods Summary
public static android.support.v7.media.SystemMediaRouteProviderobtain(android.content.Context context, android.support.v7.media.SystemMediaRouteProvider$SyncCallback syncCallback)

        if (Build.VERSION.SDK_INT >= 18) {
            return new JellybeanMr2Impl(context, syncCallback);
        }
        if (Build.VERSION.SDK_INT >= 17) {
            return new JellybeanMr1Impl(context, syncCallback);
        }
        if (Build.VERSION.SDK_INT >= 16) {
            return new JellybeanImpl(context, syncCallback);
        }
        return new LegacyImpl(context);
    
public voidonSyncRouteAdded(MediaRouter.RouteInfo route)
Called by the media router when a route is added to synchronize state with the framework media router.

    
public voidonSyncRouteChanged(MediaRouter.RouteInfo route)
Called by the media router when a route is changed to synchronize state with the framework media router.

    
public voidonSyncRouteRemoved(MediaRouter.RouteInfo route)
Called by the media router when a route is removed to synchronize state with the framework media router.

    
public voidonSyncRouteSelected(MediaRouter.RouteInfo route)
Called by the media router when a route is selected to synchronize state with the framework media router.