Interface AVCustomRoutingControllerDelegate


  • public interface AVCustomRoutingControllerDelegate
    A protocol for delegates of a custom routing controller. API-Since: 16.0
    • Method Detail

      • customRoutingControllerDidSelectItem

        default void customRoutingControllerDidSelectItem​(@NotNull
                                                          @NotNull AVCustomRoutingController controller,
                                                          @NotNull
                                                          @NotNull AVCustomRoutingActionItem customActionItem)
        Tells the delegate when a user selects a custom item in the route picker. - Parameters: - controller: A custom routing controller. - customActionItem: The selected action item.
      • customRoutingControllerEventDidTimeOut

        default void customRoutingControllerEventDidTimeOut​(@NotNull
                                                            @NotNull AVCustomRoutingController controller,
                                                            @NotNull
                                                            @NotNull AVCustomRoutingEvent event)
        Tells the delegate when a routing event times out. Adopt this method to clean up any in-progress connection attempts. - Parameters: - controller: A custom routing controller. - event: An event that times out.
      • customRoutingControllerHandleEventCompletionHandler

        void customRoutingControllerHandleEventCompletionHandler​(@NotNull
                                                                 @NotNull AVCustomRoutingController controller,
                                                                 @NotNull
                                                                 @NotNull AVCustomRoutingEvent event,
                                                                 @NotNull
                                                                 @NotNull AVCustomRoutingControllerDelegate.Block_customRoutingControllerHandleEventCompletionHandler completionHandler)
        Connects to, or disconnects from, a device when a user requests it in the picker. - Parameters: - controller: A custom routing controller. - event: The routing event to handle. - completionHandler: A completion handler to call after processing the event. Pass to the completion handler if the activation, reactivation, or deactivation of the route succeeds, and , otherwise.