public final class MediaRouterClientState extends Object implements android.os.Parcelable
Information available from MediaRouterService about the state perceived by
a particular client and the routes that are available to it.
Clients must not modify the contents of this object.
hide
Fields Summary
public final ArrayList
routes
A list of all known routes.
public String
globallySelectedRouteId
The id of the current globally selected route, or null if none.
Globally selected routes override any other route selections that applications
may have made. Used for remote displays.
final int count = routes.size();
for (int i = 0; i < count; i++) {
final RouteInfo route = routes.get(i);
if (route.id.equals(id)) {
return route;
}
}
return null;