Instance Property

delegate

The delegate object for the Picture in Picture controller.

Declaration

weak var delegate: AVPictureInPictureControllerDelegate? { get set }

Discussion

Implement the methods declared by the delegate object to respond to user interactions with the Picture in Picture feature on iPad. These protocol methods are described in AVPictureInPictureControllerDelegate.

See Also

Creating and Configuring a Picture in Picture Controller

init?(playerLayer: AVPlayerLayer)

The designated initializer for a Picture in Picture controller.

protocol AVPictureInPictureControllerDelegate

Methods you can implement to configure your app’s user interface to respond to user interactions for Picture in Picture on iPad.

var playerLayer: AVPlayerLayer

The AVPlayerLayer instance containing the media to play.