Picture-In-Picture
-
Helps configure the settings when
See morePresentationMode.pictureInPictureis active.Declaration
Swift
public protocol PictureInPicture -
The corner of the PiP view
- topLeft: The PiP view will be positioned at the top left corner of the screen
- topRight: The PiP view will be positioned at the top right corner of the screen
- bottomLeft: The PiP view will be positioned at the bottom left corner of the screen
bottomRight: The PiP view will be positioned at the bottom right corner of the screen
See moreNote
The PiP corner can be observed with the Notification.Name.PictureInPictureMoved notification
Declaration
Swift
public enum PictureInPictureCorner : Int -
The key to retrieve the new PiP view corner
Note
The PiP corner can be observed with the Notification.Name.PictureInPictureMoved notificationDeclaration
Swift
public let PictureInPictureNewCornerUserInfoKey: String -
The key to retrieve the corner at which the PiP view previously was
Note
The PiP corner can be observed with the Notification.Name.PictureInPictureMoved notificationDeclaration
Swift
public let PictureInPictureOldCornerUserInfoKey: String -
Extends
See moreAVPictureInPictureControllerDelegateto provide additional methods that get called when changes occur inAVPictureInPictureController.Declaration
Swift
@available(iOS 14.0, tvOS 14.0, *) @objc public protocol AVPictureInPictureControllerDelegateExtended : AVPictureInPictureControllerDelegate
Picture-In-Picture Reference