Methods Summary |
---|
public static void | addCallback(java.lang.Object routerObj, int types, java.lang.Object callbackObj)
((android.media.MediaRouter)routerObj).addCallback(types,
(android.media.MediaRouter.Callback)callbackObj);
|
public static void | addUserRoute(java.lang.Object routerObj, java.lang.Object routeObj)
((android.media.MediaRouter)routerObj).addUserRoute(
(android.media.MediaRouter.UserRouteInfo)routeObj);
|
public static java.lang.Object | createCallback(android.support.v7.media.MediaRouterJellybean$Callback callback)
return new CallbackProxy<Callback>(callback);
|
public static java.lang.Object | createRouteCategory(java.lang.Object routerObj, java.lang.String name, boolean isGroupable)
return ((android.media.MediaRouter)routerObj).createRouteCategory(name, isGroupable);
|
public static java.lang.Object | createUserRoute(java.lang.Object routerObj, java.lang.Object categoryObj)
return ((android.media.MediaRouter)routerObj).createUserRoute(
(android.media.MediaRouter.RouteCategory)categoryObj);
|
public static java.lang.Object | createVolumeCallback(android.support.v7.media.MediaRouterJellybean$VolumeCallback callback)
return new VolumeCallbackProxy<VolumeCallback>(callback);
|
public static java.util.List | getCategories(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.Object | getMediaRouter(android.content.Context context)
return context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
|
public static java.util.List | getRoutes(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.Object | getSelectedRoute(java.lang.Object routerObj, int type)
return ((android.media.MediaRouter)routerObj).getSelectedRoute(type);
|
public static void | removeCallback(java.lang.Object routerObj, java.lang.Object callbackObj)
((android.media.MediaRouter)routerObj).removeCallback(
(android.media.MediaRouter.Callback)callbackObj);
|
public static void | removeUserRoute(java.lang.Object routerObj, java.lang.Object routeObj)
((android.media.MediaRouter)routerObj).removeUserRoute(
(android.media.MediaRouter.UserRouteInfo)routeObj);
|
public static void | selectRoute(java.lang.Object routerObj, int types, java.lang.Object routeObj)
((android.media.MediaRouter)routerObj).selectRoute(types,
(android.media.MediaRouter.RouteInfo)routeObj);
|