Protocol

AVPlayerViewPictureInPictureDelegate

A protocol that defines the methods to implement to respond to Picture in Picture playback events.

Declaration

@protocol AVPlayerViewPictureInPictureDelegate

Topics

Responding to Picture in Picture Playback Events

- playerViewWillStartPictureInPicture:

Tells the delegate that Picture in Picture playback is about to start.

- playerViewDidStartPictureInPicture:

Tells the delegate that Picture in Picture playback started.

- playerViewWillStopPictureInPicture:

Tells the delegate that Picture in Picture playback is about to stop.

- playerViewDidStopPictureInPicture:

Tells the delegate that Picture in Picture playback stopped.

- playerView:failedToStartPictureInPictureWithError:

Tells the delegate that Picture in Picture playback failed to start.

- playerView:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:

Tells the delegate to restore the user interface before Picture in Picture playback stops.

- playerViewShouldAutomaticallyDismissAtPictureInPictureStart:

Asks the delegate if the player view should miniaturize when Picture in Picture starts.

Relationships

Inherits From

See Also

Configuring Picture in Picture Playback

allowsPictureInPicturePlayback

A Boolean value that determines whether the player view allows Picture in Picture playback.

pictureInPictureDelegate

The Picture in Picture delegate object.