Picture-In-Picture
-
Helps configure the settings when
See morePresentationMode.pictureInPicture
is 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
Note
The PiP corner can be observed with the Notification.Name.PictureInPictureMoved notification
Declaration
Swift
@objc(THEOplayerPictureInPictureCorner) 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