IMAPictureInPictureProxy
@interface IMAPictureInPictureProxy : NSProxy <AVPictureInPictureControllerDelegate,
AVPlayerViewControllerDelegate>
#endif
#if TARGET_OS_TV
@interface IMAPictureInPictureProxy : NSObject
#endif
/**
* Whether or not Picture-in-Picture is currently active.
*/
@property(nonatomic, readonly, getter=isPictureInPictureActive) BOOL pictureInPictureActive;
/**
* Whether or not Picture-in-Picture is supported on this device.
*/
+ (BOOL)isPictureInPictureSupported;
/**
* Instantiates an IMAPictureInPictureProxy that will proxy delegate
* messages from an AVPictureInPictureController, and forward them
* to the AVPictureInPictureControllerDelegate passed on init.
*
* @param delegate the AVPictureInPictureControllerDelegate
*
* @return an IMAPictureInPictureProxy instance
*/
- (instancetype)initWithAVPictureInPictureControllerDelegate:
(id<AVPictureInPictureControllerDelegate>)delegate __TVOS_UNAVAILABLE;
/**
* Instantiates an IMAPictureInPictureProxy that will proxy delegate
* messages from an AVPlayerViewController, and forward them to the
* AVPlayerViewControllerDelegate passed on init.
*
* @param delegate the AVPlayerViewControllerDelegate
*
* @return an IMAPictureInPictureProxy instance
*/
- (instancetype)initWithAVPlayerViewControllerDelegate:
(id<AVPlayerViewControllerDelegate>)delegate __TVOS_UNAVAILABLE;
@end
Undocumented
-
Whether or not Picture-in-Picture is currently active.
Declaration
Swift
var isPictureInPictureActive: Bool { get }
Objective-C
@property (readonly, getter=isPictureInPictureActive, nonatomic) BOOL pictureInPictureActive;
-
Whether or not Picture-in-Picture is supported on this device.
Declaration
Swift
class func isPictureInPictureSupported() -> Bool
Objective-C
+ (BOOL)isPictureInPictureSupported;
-
Instantiates an IMAPictureInPictureProxy that will proxy delegate messages from an AVPictureInPictureController, and forward them to the AVPictureInPictureControllerDelegate passed on init.
Declaration
Swift
init!(avPictureInPictureControllerDelegate delegate: AVPictureInPictureControllerDelegate!)
Objective-C
- (instancetype)initWithAVPictureInPictureControllerDelegate: (id<AVPictureInPictureControllerDelegate>)delegate;
Parameters
delegate
the AVPictureInPictureControllerDelegate
Return Value
an IMAPictureInPictureProxy instance
-
Instantiates an IMAPictureInPictureProxy that will proxy delegate messages from an AVPlayerViewController, and forward them to the AVPlayerViewControllerDelegate passed on init.
Declaration
Swift
init!(avPlayerViewControllerDelegate delegate: AVPlayerViewControllerDelegate!)
Objective-C
- (instancetype)initWithAVPlayerViewControllerDelegate: (id<AVPlayerViewControllerDelegate>)delegate;
Parameters
delegate
the AVPlayerViewControllerDelegate
Return Value
an IMAPictureInPictureProxy instance