IMAPictureInPictureProxy Class Reference

A proxy class for allowing the SDK to detect entering and exiting Picture-in-Picture. More...

#import <IMAPictureInPictureProxy.h>

+ Inheritance diagram for IMAPictureInPictureProxy:

Instance Methods

(instancetype) - initWithAVPictureInPictureControllerDelegate:
 Instantiates an IMAPictureInPictureProxy that will proxy delegate messages from an AVPictureInPictureController, and forward them to the AVPictureInPictureControllerDelegate passed on init. More...
 
(instancetype) - initWithAVPlayerViewControllerDelegate:
 Instantiates an IMAPictureInPictureProxy that will proxy delegate messages from an AVPlayerViewController, and forward them to the AVPlayerViewControllerDelegate passed on init. More...
 

Class Methods

(BOOL) + isPictureInPictureSupported
 Whether or not Picture-in-Picture is supported on this device. More...
 

Properties

BOOL pictureInPictureActive
 Whether or not Picture-in-Picture is currently active. More...
 

Detailed Description

A proxy class for allowing the SDK to detect entering and exiting Picture-in-Picture.

To use the proxy, create an instance of IMAPictureInPictureProxy with the Picture-in-Picture delegate as an argument, and then simply set the Picture-in-Picture controller's delegate to the proxy. See Picture in Picture for more details.

Method Documentation

- (instancetype) initWithAVPictureInPictureControllerDelegate: (id< AVPictureInPictureControllerDelegate >)  delegate

Instantiates an IMAPictureInPictureProxy that will proxy delegate messages from an AVPictureInPictureController, and forward them to the AVPictureInPictureControllerDelegate passed on init.

Parameters
delegatethe AVPictureInPictureControllerDelegate
Returns
an IMAPictureInPictureProxy instance
- (instancetype) initWithAVPlayerViewControllerDelegate: (id< AVPlayerViewControllerDelegate >)  delegate

Instantiates an IMAPictureInPictureProxy that will proxy delegate messages from an AVPlayerViewController, and forward them to the AVPlayerViewControllerDelegate passed on init.

Parameters
delegatethe AVPlayerViewControllerDelegate
Returns
an IMAPictureInPictureProxy instance
+ (BOOL) isPictureInPictureSupported

Whether or not Picture-in-Picture is supported on this device.

Property Documentation

- (BOOL) pictureInPictureActive
readnonatomicassign

Whether or not Picture-in-Picture is currently active.


The documentation for this class was generated from the following file: