routingManager(for:)
Returns the shared routing manager instance for a media device extension.
Declaration
@MainActor static func routingManager(for extension: any MediaDeviceExtension) -> MediaDeviceRoutingManagerParameters
- extension:
The extension to obtain the routing manager for.
Mentioned in
Return Value
The shared MediaDeviceRoutingManager instance.
Discussion
Use this method to obtain the shared MediaDeviceRoutingManager instance for your extension. The routing manager is how your extension reports device discovery, state changes, and playback events to the system.