Contents

customRoutingController(_:handle:completionHandler:)

Connects to, or disconnects from, a device when a user requests it in the picker.

Declaration

func customRoutingController(_ controller: AVCustomRoutingController, handle event: AVCustomRoutingEvent, completionHandler: @escaping  @Sendable (Bool) -> Void)
func customRoutingController(_ controller: AVCustomRoutingController, handle event: AVCustomRoutingEvent) async -> Bool

Parameters

  • controller:

    A custom routing controller.

  • event:

    The routing event to handle.

  • completionHandler:

    A completion handler to call after processing the event. Pass True to the completion handler if the activation, reactivation, or deactivation of the route succeeds, and False, otherwise.

Discussion

See Also

Handling controller events