AVCustomRoutingControllerDelegate

Trait AVCustomRoutingControllerDelegate 

Source
pub unsafe trait AVCustomRoutingControllerDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn customRoutingController_handleEvent_completionHandler(
        &self,
        controller: &AVCustomRoutingController,
        event: &AVCustomRoutingEvent,
        completion_handler: &DynBlock<dyn Fn(Bool)>,
    )
       where Self: Sized + Message { ... }
    unsafe fn customRoutingController_eventDidTimeOut(
        &self,
        controller: &AVCustomRoutingController,
        event: &AVCustomRoutingEvent,
    )
       where Self: Sized + Message { ... }
    unsafe fn customRoutingController_didSelectItem(
        &self,
        controller: &AVCustomRoutingController,
        custom_action_item: &AVCustomRoutingActionItem,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVCustomRoutingController only.
Expand description

A protocol for delegates of a custom routing controller.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn customRoutingController_handleEvent_completionHandler( &self, controller: &AVCustomRoutingController, event: &AVCustomRoutingEvent, completion_handler: &DynBlock<dyn Fn(Bool)>, )
where Self: Sized + Message,

Available on crate features AVCustomRoutingEvent and block2 only.

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 <doc ://com.apple.documentation/documentation/objectivec/yes> to the completion handler if the activation, reactivation, or deactivation of the route succeeds, and <doc ://com.apple.documentation/documentation/objectivec/no>, otherwise.

Source

unsafe fn customRoutingController_eventDidTimeOut( &self, controller: &AVCustomRoutingController, event: &AVCustomRoutingEvent, )
where Self: Sized + Message,

Available on crate feature AVCustomRoutingEvent only.

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.

Source

unsafe fn customRoutingController_didSelectItem( &self, controller: &AVCustomRoutingController, custom_action_item: &AVCustomRoutingActionItem, )
where Self: Sized + Message,

Available on crate feature AVCustomRoutingActionItem only.

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.

Trait Implementations§

Source§

impl ProtocolType for dyn AVCustomRoutingControllerDelegate

Source§

const NAME: &'static str = "AVCustomRoutingControllerDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn AVCustomRoutingControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> AVCustomRoutingControllerDelegate for ProtocolObject<T>

Implementors§