Added in API level 30

MediaRouter2.RoutingController


public class MediaRouter2.RoutingController
extends Object

java.lang.Object
   ↳ android.media.MediaRouter2.RoutingController


Controls a media routing session.

Routing controllers wrap a RoutingSessionInfo, taking care of mapping route ids to MediaRoute2Info instances. You can still access the underlying session using getRoutingSessionInfo(), but keep in mind it can be changed by other threads. Changes to the routing session are notified via ControllerCallback.

Summary

Public methods

void deselectRoute(MediaRoute2Info route)

Deselects a route from the remote session.

Bundle