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 { ... }
}
AVCustomRoutingController
only.Expand description
A protocol for delegates of a custom routing controller.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn customRoutingController_handleEvent_completionHandler(
&self,
controller: &AVCustomRoutingController,
event: &AVCustomRoutingEvent,
completion_handler: &DynBlock<dyn Fn(Bool)>,
)
Available on crate features AVCustomRoutingEvent
and block2
only.
unsafe fn customRoutingController_handleEvent_completionHandler( &self, controller: &AVCustomRoutingController, event: &AVCustomRoutingEvent, completion_handler: &DynBlock<dyn Fn(Bool)>, )
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.
Sourceunsafe fn customRoutingController_eventDidTimeOut(
&self,
controller: &AVCustomRoutingController,
event: &AVCustomRoutingEvent,
)
Available on crate feature AVCustomRoutingEvent
only.
unsafe fn customRoutingController_eventDidTimeOut( &self, controller: &AVCustomRoutingController, event: &AVCustomRoutingEvent, )
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.
Sourceunsafe fn customRoutingController_didSelectItem(
&self,
controller: &AVCustomRoutingController,
custom_action_item: &AVCustomRoutingActionItem,
)
Available on crate feature AVCustomRoutingActionItem
only.
unsafe fn customRoutingController_didSelectItem( &self, controller: &AVCustomRoutingController, custom_action_item: &AVCustomRoutingActionItem, )
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.