AVSystemRouteController
An object that manages interaction with system routes.
Declaration
final class AVSystemRouteControllerMentioned in
Overview
Important: Your app must declare support for Media Sharing Extensions with the MDESupportsUniversalURLPlayback key and/or for specific protocols in the MDESupportedProtocols key of the app’s Info.plist. ///
<key>MDESupportsUniversalURLPlayback</key>
<true/>
<key>MDESupportedProtocols</key>
<dict>
<key>com.example.sharingprotocol</key>
<string>com.example.myapplicationidentifier</string>
</dict>Where the key in MDESupportedProtocols is the Protocol ID of the extension you are declaring support for and the string value is the application ID of your remote application which the protocol would launch on the receiver.
Use the shared shared instance to observe routing events. Register an AVSystemRouteControllerObserver to receive callbacks when users select or deselect routes in the system route picker.