IMAPictureInPictureProxy.h
1 //
2 // IMAPictureInPictureProxy.h
3 // GoogleIMA3
4 //
5 // Copyright (c) 2015 Google Inc. All rights reserved.
6 //
7 // Defines a proxy for wrapping an AVPlayerViewControllerDelegate or
8 // AVPictureInPictureControllerDelegate for handling Picture-in-Picture.
9 
10 #import <AVKit/AVKit.h>
11 #import <Foundation/Foundation.h>
12 
13 @protocol AVPlayerViewControllerDelegate;
14 @protocol AVPictureInPictureControllerDelegate;
15 
26 @interface IMAPictureInPictureProxy : NSProxy <AVPictureInPictureControllerDelegate,
27  AVPlayerViewControllerDelegate>
31 @property(nonatomic, readonly, getter=isPictureInPictureActive) BOOL pictureInPictureActive;
32 
37 
47 - (instancetype)initWithAVPictureInPictureControllerDelegate:
48  (id<AVPictureInPictureControllerDelegate>)delegate;
49 
59 - (instancetype)initWithAVPlayerViewControllerDelegate:(id<AVPlayerViewControllerDelegate>)delegate;
60 
61 @end
A proxy class for allowing the SDK to detect entering and exiting Picture-in-Picture.
Definition: IMAPictureInPictureProxy.h:26
BOOL pictureInPictureActive
Whether or not Picture-in-Picture is currently active.
Definition: IMAPictureInPictureProxy.h:31
BOOL isPictureInPictureSupported()
Whether or not Picture-in-Picture is supported on this device.