AVSystemRouting routes media playback to remote devices on iOS, with configurable launch modes and bidirectional data channels. You manage routes through AVSystemRouteController, observe changes by adopting AVSystemRouteControllerObserver, and inspect individual destinations with AVSystemRoute. As routing changes occur, an AVSystemRouteEvent reports what happened through its AVSystemRouteEventReason, and you exchange data over a route by handling callbacks with AVSystemRouteDataDelegate. Sessions such as AVSystemRouteMediaSession and AVSystemRouteSession represent active routing, while AVSystemRouteLaunchMode and AVSystemRoutingError describe launch behavior and failures.
Routing Management 3
Discover, manage, and observe the routing of media playback to remote devices.
- ClAVSystemRouteControllerAn object that manages interaction with system routes.
- PrAVSystemRouteControllerObserverA protocol for observers of a system routing controller.
- ClAVSystemRouteAn active media route to a remote device that manages connection and communication for media playback and data exchange.
Routing Sessions 2
Represent active routing of media to a remote destination.
- ClAVSystemRouteMediaSessionAn object that provides playback controls and a data channel for a session running on a remote device.
- ClAVSystemRouteSessionAn object that manages a single media playback session on a remote device.
Routing Events 2
Report changes in routing state and the reasons behind them.
- ClAVSystemRouteEventAn object that represents an event that occurs on a system route.
- EnAVSystemRouteEventReasoniOS 27.0+Values that indicate the reason for a routing event.
Data Exchange 1
Handle bidirectional data channels established over a route.
- PrAVSystemRouteDataDelegateA protocol for handling data from a remote application.
Launch Behavior and Errors 2
Configure how routing launches and describe failures that can occur.
- EnAVSystemRouteLaunchModeiOS 27.0+The mode that determines how media playback launches on a remote device.
- StAVSystemRoutingErroriOS 27.0+A structure that describes errors that can occur while routing media to remote devices.