AVPictureInPictureControllerDelegate

Trait AVPictureInPictureControllerDelegate 

Source
pub unsafe trait AVPictureInPictureControllerDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn pictureInPictureControllerWillStartPictureInPicture(
        &self,
        picture_in_picture_controller: &AVPictureInPictureController,
    )
       where Self: Sized + Message { ... }
    unsafe fn pictureInPictureControllerDidStartPictureInPicture(
        &self,
        picture_in_picture_controller: &AVPictureInPictureController,
    )
       where Self: Sized + Message { ... }
    unsafe fn pictureInPictureController_failedToStartPictureInPictureWithError(
        &self,
        picture_in_picture_controller: &AVPictureInPictureController,
        error: &NSError,
    )
       where Self: Sized + Message { ... }
    unsafe fn pictureInPictureControllerWillStopPictureInPicture(
        &self,
        picture_in_picture_controller: &AVPictureInPictureController,
    )
       where Self: Sized + Message { ... }
    unsafe fn pictureInPictureControllerDidStopPictureInPicture(
        &self,
        picture_in_picture_controller: &AVPictureInPictureController,
    )
       where Self: Sized + Message { ... }
    unsafe fn pictureInPictureController_restoreUserInterfaceForPictureInPictureStopWithCompletionHandler(
        &self,
        picture_in_picture_controller: &AVPictureInPictureController,
        completion_handler: &DynBlock<dyn Fn(Bool)>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVPictureInPictureController only.
Expand description

A protocol for delegates of AVPictureInPictureController.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn pictureInPictureControllerWillStartPictureInPicture( &self, picture_in_picture_controller: &AVPictureInPictureController, )
where Self: Sized + Message,

Parameter pictureInPictureController: The Picture in Picture controller.

Delegate can implement this method to be notified when Picture in Picture will start.

Source

unsafe fn pictureInPictureControllerDidStartPictureInPicture( &self, picture_in_picture_controller: &AVPictureInPictureController, )
where Self: Sized + Message,

Parameter pictureInPictureController: The Picture in Picture controller.

Delegate can implement this method to be notified when Picture in Picture did start.

Source

unsafe fn pictureInPictureController_failedToStartPictureInPictureWithError( &self, picture_in_picture_controller: &AVPictureInPictureController, error: &NSError, )
where Self: Sized + Message,

Parameter pictureInPictureController: The Picture in Picture controller.

Parameter error: An error describing why it failed.

Delegate can implement this method to be notified when Picture in Picture failed to start.

Source

unsafe fn pictureInPictureControllerWillStopPictureInPicture( &self, picture_in_picture_controller: &AVPictureInPictureController, )
where Self: Sized + Message,

Parameter pictureInPictureController: The Picture in Picture controller.

Delegate can implement this method to be notified when Picture in Picture will stop.

Source

unsafe fn pictureInPictureControllerDidStopPictureInPicture( &self, picture_in_picture_controller: &AVPictureInPictureController, )
where Self: Sized + Message,

Parameter pictureInPictureController: The Picture in Picture controller.

Delegate can implement this method to be notified when Picture in Picture did stop.

Source

unsafe fn pictureInPictureController_restoreUserInterfaceForPictureInPictureStopWithCompletionHandler( &self, picture_in_picture_controller: &AVPictureInPictureController, completion_handler: &DynBlock<dyn Fn(Bool)>, )
where Self: Sized + Message,

Available on crate feature block2 only.

Parameter pictureInPictureController: The Picture in Picture controller.

Parameter completionHandler: The completion handler the delegate needs to call after restore.

Delegate can implement this method to restore the user interface before Picture in Picture stops.

Trait Implementations§

Source§

impl ProtocolType for dyn AVPictureInPictureControllerDelegate

Source§

const NAME: &'static str = "AVPictureInPictureControllerDelegate"

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 AVPictureInPictureControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> AVPictureInPictureControllerDelegate for ProtocolObject<T>

Implementors§