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

MediaRouterJellybean

public final class MediaRouterJellybean extends Object

Fields Summary
private static final String
TAG
public static final int
ROUTE_TYPE_LIVE_AUDIO
public static final int
ROUTE_TYPE_LIVE_VIDEO
public static final int
ROUTE_TYPE_USER
public static final int
ALL_ROUTE_TYPES
Constructors Summary
Methods Summary
public static voidaddCallback(java.lang.Object routerObj, int types, java.lang.Object callbackObj)

        ((android.media.MediaRouter)routerObj).addCallback(types,
                (android.media.MediaRouter.Callback)callbackObj);
    
public static voidaddUserRoute(java.lang.Object routerObj, java.lang.Object routeObj)

        ((android.media.MediaRouter)routerObj).addUserRoute(
                (android.media.MediaRouter.UserRouteInfo)routeObj);
    
public static java.lang.ObjectcreateCallback(android.support.v7.media.MediaRouterJellybean$Callback callback)

        return new CallbackProxy<Callback>(callback);
    
public static java.lang.ObjectcreateRouteCategory(java.lang.Object routerObj, java.lang.String name, boolean isGroupable)

        return ((android.media.MediaRouter)routerObj).createRouteCategory(name, isGroupable);
    
public static java.lang.ObjectcreateUserRoute(java.lang.Object routerObj, java.lang.Object categoryObj)

        return ((android.media.MediaRouter)routerObj).createUserRoute(
                (android.media.MediaRouter.RouteCategory)categoryObj);
    
public static java.lang.ObjectcreateVolumeCallback(android.support.v7.media.MediaRouterJellybean$VolumeCallback callback)

        return new VolumeCallbackProxy<VolumeCallback>(callback);
    
public static java.util.ListgetCategories(java.lang.Object routerObj)

        final android.media.MediaRouter router = (android.media.MediaRouter)routerObj;
        final int count = router.getCategoryCount();
        List out = new ArrayList(count);
        for (int i = 0; i < count; i++) {
            out.add(router.getCategoryAt(i));
        }
        return out;
    
public static java.lang.ObjectgetMediaRouter(android.content.Context context)


         
        return context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
    
public static java.util.ListgetRoutes(java.lang.Object routerObj)

        final android.media.MediaRouter router = (android.media.MediaRouter)routerObj;
        final int count = router.getRouteCount();
        List out = new ArrayList(count);
        for (int i = 0; i < count; i++) {
            out.add(router.getRouteAt(i));
        }
        return out;
    
public static java.lang.ObjectgetSelectedRoute(java.lang.Object routerObj, int type)

        return ((android.media.MediaRouter)routerObj).getSelectedRoute(type);
    
public static voidremoveCallback(java.lang.Object routerObj, java.lang.Object callbackObj)

        ((android.media.MediaRouter)routerObj).removeCallback(
                (android.media.MediaRouter.Callback)callbackObj);
    
public static voidremoveUserRoute(java.lang.Object routerObj, java.lang.Object routeObj)

        ((android.media.MediaRouter)routerObj).removeUserRoute(
                (android.media.MediaRouter.UserRouteInfo)routeObj);
    
public static voidselectRoute(java.lang.Object routerObj, int types, java.lang.Object routeObj)

        ((android.media.MediaRouter)routerObj).selectRoute(types,
                (android.media.MediaRouter.RouteInfo)routeObj);