-
Notifications
You must be signed in to change notification settings - Fork 0
/
AVKit.framework.h
638 lines (505 loc) · 23.3 KB
/
AVKit.framework.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
// ========== AVKit.framework/Headers/AVPlayerViewController.h
/*
File: AVPlayerViewController.h
Framework: AVKit
Copyright © 2014-2017 Apple Inc. All rights reserved.
*/
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol AVPlayerViewControllerDelegate;
/*!
@class AVPlayerViewController
@abstract AVPlayerViewController is a subclass of UIViewController that can be used to display the visual content of an AVPlayer object and the standard playback controls.
*/
API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(macos, watchos, tvos)
@interface AVPlayerViewController : UIViewController
/*!
@property player
@abstract The player from which to source the media content for the view controller.
*/
@property (nonatomic, strong, nullable) AVPlayer *player;
/*!
@property showsPlaybackControls
@abstract Whether or not the receiver shows playback controls. Default is YES.
@discussion Clients can set this property to NO when they don't want to have any playback controls on top of the visual content (e.g. for a game splash screen).
*/
@property (nonatomic) BOOL showsPlaybackControls;
/*!
@property videoGravity
@abstract A string defining how the video is displayed within an AVPlayerLayer bounds rect.
@discussion Options are AVLayerVideoGravityResizeAspect, AVLayerVideoGravityResizeAspectFill and AVLayerVideoGravityResize. AVLayerVideoGravityResizeAspect is default.
*/
@property (nonatomic, copy) AVLayerVideoGravity videoGravity;
/*!
@property readyForDisplay
@abstract Boolean indicating that the first video frame has been made ready for display for the current item of the associated AVPlayer.
*/
@property (nonatomic, readonly, getter = isReadyForDisplay) BOOL readyForDisplay;
/*!
@property videoBounds
@abstract The current size and position of the video image as displayed within the receiver's view's bounds.
*/
@property (nonatomic, readonly) CGRect videoBounds;
/*!
@property contentOverlayView
@abstract Use the content overlay view to add additional custom views between the video content and the controls.
*/
@property (nonatomic, readonly, nullable) UIView *contentOverlayView;
/*!
@property allowsPictureInPicturePlayback
@abstract Whether or not the receiver allows Picture in Picture playback. Default is YES.
*/
@property (nonatomic) BOOL allowsPictureInPicturePlayback API_AVAILABLE(ios(9.0));
/*!
@property updatesNowPlayingInfoCenter
@abstract Whether or not the now playing info center should be updated. Default is YES.
*/
@property (nonatomic) BOOL updatesNowPlayingInfoCenter API_AVAILABLE(ios(10.0));
/*!
@property entersFullScreenWhenPlaybackBegins
@abstract Whether or not the receiver automatically enters full screen when the play button is tapped. Default is NO.
@discussion If YES, the receiver will show a user interface tailored to this behavior.
*/
@property (nonatomic) BOOL entersFullScreenWhenPlaybackBegins API_AVAILABLE(ios(11.0));
/*!
@property exitsFullScreenWhenPlaybackEnds
@abstract Whether or not the receiver automatically exits full screen when playback ends. Default is NO.
@discussion If multiple player items have been enqueued, the receiver exits fullscreen once no more items are remaining in the queue.
*/
@property (nonatomic) BOOL exitsFullScreenWhenPlaybackEnds API_AVAILABLE(ios(11.0));
/*!
@property pixelBufferAttributes
@abstract The client requirements for the visual output during playback.
@discussion Pixel buffer attribute keys are defined in <CoreVideo/CVPixelBuffer.h>
*/
@property (nonatomic, copy, nullable) NSDictionary<NSString *,id> *pixelBufferAttributes API_AVAILABLE(ios(9.0));
/*!
@property delegate
@abstract The receiver's delegate.
*/
@property (nonatomic, weak, nullable) id <AVPlayerViewControllerDelegate> delegate API_AVAILABLE(ios(9.0));
@end
/*!
@protocol AVPlayerViewControllerDelegate
@abstract A protocol for delegates of AVPlayerViewController.
*/
@protocol AVPlayerViewControllerDelegate <NSObject>
@optional
/*!
@method playerViewController:willBeginFullScreenPresentationWithAnimationCoordinator:
@param playerViewController
The player view controller.
@param coordinator
An object conforming to UIViewControllerTransitionCoordinator.
@abstract Informs the delegate that AVPlayerViewController is about to start displaying its contents full screen.
@discussion This method will not be called if a playerViewController is embedded inside a view controller that is being presented. If the receiver is embedded in a parent view controller, its content will be presented in a new full screen view controller and perhaps in a new window. Use the coordinator to determine whether the playerViewController or its full screen counterpart is being transitioned. Transitions can be interrupted -- use a completion block of one of the coordinator's animation methods to determine whether it has completed.
*/
- (void)playerViewController:(AVPlayerViewController *)playerViewController willBeginFullScreenPresentationWithAnimationCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator API_AVAILABLE(ios(12.0));
/*!
@method playerViewController:willEndFullScreenPresentationWithAnimationCoordinator:
@param playerViewController
The player view controller.
@param coordinator
An object conforming to UIViewControllerTransitionCoordinator.
@abstract Informs the delegate that AVPlayerViewController is about to stop displaying its contents full screen.
@discussion See the discussion of -[AVPlayerViewControllerDelegatePrivate playerViewController:willBeginFullScreenPresentationWithAnimationCoordinator:].
*/
- (void)playerViewController:(AVPlayerViewController *)playerViewController willEndFullScreenPresentationWithAnimationCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator API_AVAILABLE(ios(12.0));
/*!
@method playerViewControllerWillStartPictureInPicture:
@param playerViewController
The player view controller.
@abstract Delegate can implement this method to be notified when Picture in Picture will start.
*/
- (void)playerViewControllerWillStartPictureInPicture:(AVPlayerViewController *)playerViewController;
/*!
@method playerViewControllerDidStartPictureInPicture:
@param playerViewController
The player view controller.
@abstract Delegate can implement this method to be notified when Picture in Picture did start.
*/
- (void)playerViewControllerDidStartPictureInPicture:(AVPlayerViewController *)playerViewController;
/*!
@method playerViewController:failedToStartPictureInPictureWithError:
@param playerViewController
The player view controller.
@param error
An error describing why it failed.
@abstract Delegate can implement this method to be notified when Picture in Picture failed to start.
*/
- (void)playerViewController:(AVPlayerViewController *)playerViewController failedToStartPictureInPictureWithError:(NSError *)error;
/*!
@method playerViewControllerWillStopPictureInPicture:
@param playerViewController
The player view controller.
@abstract Delegate can implement this method to be notified when Picture in Picture will stop.
*/
- (void)playerViewControllerWillStopPictureInPicture:(AVPlayerViewController *)playerViewController;
/*!
@method playerViewControllerDidStopPictureInPicture:
@param playerViewController
The player view controller.
@abstract Delegate can implement this method to be notified when Picture in Picture did stop.
*/
- (void)playerViewControllerDidStopPictureInPicture:(AVPlayerViewController *)playerViewController;
/*!
@method playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart:
@param playerViewController
The player view controller.
@abstract Delegate can implement this method and return NO to prevent player view controller from automatically being dismissed when Picture in Picture starts.
*/
- (BOOL)playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart:(AVPlayerViewController *)playerViewController;
/*!
@method playerViewController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:
@param playerViewController
The player view controller.
@param completionHandler
The completion handler the delegate needs to call after restore.
@abstract Delegate can implement this method to restore the user interface before Picture in Picture stops.
*/
- (void)playerViewController:(AVPlayerViewController *)playerViewController restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:(void (^)(BOOL restored))completionHandler;
@end
NS_ASSUME_NONNULL_END
// ========== AVKit.framework/Headers/AVKit.h
/*
File: AVKit.h
Framework: AVKit
Copyright © 2013-2016 Apple Inc. All rights reserved.
To report bugs, go to: http://developer.apple.com/bugreporter/
*/
#import <AVKit/AVKitDefines.h>
#if TARGET_OS_IPHONE
#import <AVKit/AVError.h>
#import <AVKit/AVPictureInPictureController.h>
#import <AVKit/AVPlayerItem+AVKitAdditions.h>
#import <AVKit/AVPlayerViewController.h>
#import <AVKit/AVPlaybackRouteSelecting.h>
#else
#import <AVKit/AVCaptureView.h>
#import <AVKit/AVPictureInPictureController.h>
#import <AVKit/AVPlayerView.h>
#endif // TARGET_OS_IPHONE
#import <AVKit/AVRoutePickerView.h>
// ========== AVKit.framework/Headers/AVRoutePickerView.h
/*
File: AVRoutePickerView.h
Framework: AVKit
Copyright © 2017 Apple Inc. All rights reserved.
*/
#import <UIKit/UIKit.h>
@protocol AVRoutePickerViewDelegate;
NS_ASSUME_NONNULL_BEGIN
/*!
@class AVRoutePickerView
@abstract AVRoutePickerView is a subclass of UIView that displays controls for picking playback routes.
*/
API_AVAILABLE(ios(11.0), tvos(11.0)) API_UNAVAILABLE(macos, watchos)
@interface AVRoutePickerView : UIView
/*!
@property delegate
@abstract The route picker view's delegate.
*/
@property (nonatomic, weak, nullable) id<AVRoutePickerViewDelegate> delegate;
/*!
@property activeTintColor
@abstract The view's tint color when AirPlay is active.
*/
@property (nonatomic, strong, null_resettable) UIColor *activeTintColor;
/*!
@constant AVRoutePickerViewButtonStyleSystem
A system style for the route picker button.
@constant AVRoutePickerViewButtonStylePlain
A plain style for the route picker button, which has the same appearance as the system style without the blurred background view.
@constant AVRoutePickerViewButtonStyleCustom
A custom style for the route picker button, which allows customizing the background view and focused appearance.
*/
typedef NS_ENUM(NSInteger, AVRoutePickerViewButtonStyle) {
AVRoutePickerViewButtonStyleSystem,
AVRoutePickerViewButtonStylePlain,
AVRoutePickerViewButtonStyleCustom
} API_AVAILABLE(tvos(11.0)) API_UNAVAILABLE(ios);
/*!
@property routePickerButtonStyle
@abstract The route picker button style.
*/
@property (nonatomic) AVRoutePickerViewButtonStyle routePickerButtonStyle API_AVAILABLE(tvos(11.0)) API_UNAVAILABLE(ios);
/*!
@property prioritizesVideoDevices
@abstract Whether or not the route picker should sort video capable output devices to the top of the list.
*/
@property (nonatomic) BOOL prioritizesVideoDevices API_AVAILABLE(ios(13.0), tvos(13.0));
@end
/*!
@protocol AVRoutePickerViewDelegate
@abstract Defines an interface for delegates of AVRoutePickerView.
*/
@protocol AVRoutePickerViewDelegate <NSObject>
@optional
/*!
@method routePickerViewWillBeginPresentingRoutes:
@abstract Informs the delegate that the route picker view will start presenting routes to the user.
*/
- (void)routePickerViewWillBeginPresentingRoutes:(AVRoutePickerView *)routePickerView;
/*!
@method routePickerViewDidEndPresentingRoutes:
@abstract Informs the delegate that the route picker view finished presenting routes to the user.
*/
- (void)routePickerViewDidEndPresentingRoutes:(AVRoutePickerView *)routePickerView;
@end
NS_ASSUME_NONNULL_END
// ========== AVKit.framework/Headers/AVPlaybackRouteSelecting.h
/*
File: AVPlaybackRouteSelecting.h
Framework: AVKit
Copyright © 2019 Apple Inc. All rights reserved.
*/
#import <AVFoundation/AVFoundation.h>
@class AVAudioSession;
NS_ASSUME_NONNULL_BEGIN
/*!
@constant AVAudioSessionRouteSelectionNone
Indicates no route was selected.
@constant AVAudioSessionRouteSelectionLocal
Indicates that the local device was selected.
@constant AVAudioSessionRouteSelectionExternal
Indicates that an external device was selected.
*/
typedef NS_ENUM(NSInteger, AVAudioSessionRouteSelection) {
AVAudioSessionRouteSelectionNone = 0,
AVAudioSessionRouteSelectionLocal = 1,
AVAudioSessionRouteSelectionExternal = 2
} NS_SWIFT_NAME(AVAudioSession.RouteSelection) API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos);
API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
@interface AVAudioSession (AVPlaybackRouteSelecting)
/*!
@method prepareRouteSelectionForPlaybackWithCompletionHandler:
@param completionHandler
Once any potential routing is complete, the completion handler is called with the selected route type and with a BOOL indicating whether playback should begin or not.
@abstract A call to this method is an indication that playback is about to start. This gives the receiver an opportunity to prompt the user to pick an output destination if necessary.
The receiver will only prompt if the audio session has been configured with a long-form video route sharing policy.
@discussion Presenting playback UI (e.g. AVPlayerViewController) and commencing playback should be performed in the completionHandler.
*/
- (void)prepareRouteSelectionForPlaybackWithCompletionHandler:(void (^)(BOOL shouldStartPlayback, AVAudioSessionRouteSelection routeSelection))completionHandler;
@end
NS_ASSUME_NONNULL_END
// ========== AVKit.framework/Headers/AVError.h
/*
File: AVError.h
Framework: AVKit
Copyright © 2015-2016 Apple Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AVKit/AVKitDefines.h>
/*!
@constant AVKitErrorDomain
@abstract Domain for errors from AVKit APIs.
*/
AVKIT_EXTERN NSString * const AVKitErrorDomain API_AVAILABLE(ios(9.0));
/*!
@constant AVKitErrorUnknown
Unknown error.
@constant AVKitErrorPictureInPictureStartFailed
Failed to start Picture in Picture.
*/
typedef NS_ENUM(NSInteger, AVKitError) {
AVKitErrorUnknown = -1000,
AVKitErrorPictureInPictureStartFailed = -1001
} API_AVAILABLE(ios(9.0));
// ========== AVKit.framework/Headers/AVKitDefines.h
/*
File: AVKitDefines.h
Framework: AVKit
Copyright © 2014-2016 Apple Inc. All rights reserved.
*/
#import <Availability.h>
#import <TargetConditionals.h>
#ifdef __cplusplus
#define AVKIT_EXTERN extern "C" __attribute__((visibility ("default")))
#else
#define AVKIT_EXTERN extern __attribute__((visibility ("default")))
#endif
// ========== AVKit.framework/Headers/AVPlayerItem+AVKitAdditions.h
/*
File: AVPlayerItem+AVKitAdditions.h
Framework: AVKit
Copyright © 2019 Apple Inc. All rights reserved.
*/
#import <AVFoundation/AVPlayerItem.h>
@class AVMetadataItem;
NS_ASSUME_NONNULL_BEGIN
@interface AVPlayerItem (AVKitAdditions)
/*!
@property externalMetadata
@abstract Supplements metadata contained in the asset.
@discussion AVPlayerViewController will publish this metadata as now playing info when AVPlayerViewController.updatesNowPlayingInfoCenter is YES.
*/
@property (nonatomic, copy) NSArray<AVMetadataItem *> *externalMetadata API_AVAILABLE(ios(12.0));
@end
NS_ASSUME_NONNULL_END
// ========== AVKit.framework/Headers/AVPictureInPictureController.h
/*
File: AVPictureInPictureController.h
Framework: AVKit
Copyright © 2015-2017 Apple Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <AVKit/AVKitDefines.h>
NS_ASSUME_NONNULL_BEGIN
#if TARGET_OS_IPHONE
@class UIImage;
@class UITraitCollection;
#elif TARGET_OS_OSX
@class NSImage;
#endif // TARGET_OS_IPHONE
@protocol AVPictureInPictureControllerDelegate;
/*!
@class AVPictureInPictureController
@abstract AVPictureInPictureController is a subclass of NSObject that can be used to present the contents of an AVPlayerLayer or AVPlayerView floating on top of applications.
*/
API_AVAILABLE(ios(9.0), macos(10.15), tvos(13.0)) API_UNAVAILABLE(watchos)
@interface AVPictureInPictureController : NSObject
/*!
@method isPictureInPictureSupported
@abstract Whether or not Picture in Picture is supported on the current device.
@discussion When NO, all initializers will return nil.
*/
+ (BOOL)isPictureInPictureSupported;
#if TARGET_OS_IPHONE
/*!
@method pictureInPictureButtonStartImageCompatibleWithTraitCollection:
@param traitCollection
Traits that describe the image to retrieve, pass nil to use traits that describe the main screen.
@abstract System default Picture in Picture start template image for use in client's Picture in Picture button.
*/
+ (UIImage *)pictureInPictureButtonStartImageCompatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection;
/*!
@method pictureInPictureButtonStopImageCompatibleWithTraitCollection:
@param traitCollection
Traits that describe the image to retrieve, pass nil to use traits that describe the main screen.
@abstract System default Picture in Picture stop template image for use in client's Picture in Picture button.
*/
+ (UIImage *)pictureInPictureButtonStopImageCompatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection;
/*!
@property pictureInPictureButtonStartImage
@abstract System default Picture in Picture start template image for use in client's Picture in Picture button.
*/
@property (class, nonatomic, readonly) UIImage *pictureInPictureButtonStartImage API_AVAILABLE(ios(13.0), tvos(13.0));
/*!
@property pictureInPictureButtonStopImage
@abstract System default Picture in Picture stop template image for use in client's Picture in Picture button.
*/
@property (class, nonatomic, readonly) UIImage *pictureInPictureButtonStopImage API_AVAILABLE(ios(13.0), tvos(13.0));
#elif TARGET_OS_OSX
/*!
@property pictureInPictureButtonStartImage
@abstract System default Picture in Picture start template image for use in client's Picture in Picture button.
*/
@property (class, nonatomic, readonly) NSImage *pictureInPictureButtonStartImage;
/*!
@property pictureInPictureButtonStopImage
@abstract System default Picture in Picture stop template image for use in client's Picture in Picture button.
*/
@property (class, nonatomic, readonly) NSImage *pictureInPictureButtonStopImage;
#endif // TARGET_OS_IPHONE
/*!
@method initWithPlayerLayer:
@param playerLayer
The player layer from which to source the media content for the Picture in Picture controller.
@abstract Designated initializer.
*/
- (nullable instancetype)initWithPlayerLayer:(AVPlayerLayer *)playerLayer NS_DESIGNATED_INITIALIZER;
/*!
@property playerLayer
@abstract The receiver's player layer.
*/
@property (nonatomic, readonly) AVPlayerLayer *playerLayer;
/*!
@property delegate
@abstract The receiver's delegate.
*/
@property (nonatomic, weak, nullable) id <AVPictureInPictureControllerDelegate> delegate;
/*!
@method startPictureInPicture
@abstract Start Picture in Picture for the provided AVPlayerLayer if possible.
@discussion Receiver will call -pictureInPictureControllerWillStartPictureInPicture: if Picture in Picture is currently possible and -pictureInPictureControllerDidStartPictureInPicture: after a successful start. If starting Picture in Picture fails, -pictureInPictureControllerFailedToStartPictureInPicture:withError: is called on the delegate instead. Client can stop Picture in Picture by calling -stopPictureInPicture. In addition the user can stop Picture in Picture through user interaction. It is also possible that Picture in Picture is stopped by the Picture in Picture controller at any time. In all these cases receiver calls -pictureInPictureControllerWillStopPictureInPicture: on the delegate and -pictureInPictureControllerDidStopPictureInPicture:after the stop animation completed.
*/
- (void)startPictureInPicture;
/*!
@method stopPictureInPicture
@abstract Stop Picture in Picture for the provided AVPlayerLayer if currently active.
@discussion See -startPictureInPicture for details.
*/
- (void)stopPictureInPicture;
/*!
@property pictureInPicturePossible
@abstract Whether or not Picture in Picture is currently possible.
*/
@property (nonatomic, readonly, getter = isPictureInPicturePossible) BOOL pictureInPicturePossible;
/*!
@property pictureInPictureActive
@abstract Whether or not Picture in Picture is currently active.
*/
@property (nonatomic, readonly, getter = isPictureInPictureActive) BOOL pictureInPictureActive;
/*!
@property pictureInPictureSuspended
@abstract Whether or not Picture in Picture is currently suspended.
*/
@property (nonatomic, readonly, getter = isPictureInPictureSuspended) BOOL pictureInPictureSuspended;
@end
/*!
@protocol AVPictureInPictureControllerDelegate
@abstract A protocol for delegates of AVPictureInPictureController.
*/
API_AVAILABLE(ios(9.0), tvos(13.0), macos(10.15)) API_UNAVAILABLE(watchos)
@protocol AVPictureInPictureControllerDelegate <NSObject>
@optional
/*!
@method pictureInPictureControllerWillStartPictureInPicture:
@param pictureInPictureController
The Picture in Picture controller.
@abstract Delegate can implement this method to be notified when Picture in Picture will start.
*/
- (void)pictureInPictureControllerWillStartPictureInPicture:(AVPictureInPictureController *)pictureInPictureController;
/*!
@method pictureInPictureControllerDidStartPictureInPicture:
@param pictureInPictureController
The Picture in Picture controller.
@abstract Delegate can implement this method to be notified when Picture in Picture did start.
*/
- (void)pictureInPictureControllerDidStartPictureInPicture:(AVPictureInPictureController *)pictureInPictureController;
/*!
@method pictureInPictureController:failedToStartPictureInPictureWithError:
@param pictureInPictureController
The Picture in Picture controller.
@param error
An error describing why it failed.
@abstract Delegate can implement this method to be notified when Picture in Picture failed to start.
*/
- (void)pictureInPictureController:(AVPictureInPictureController *)pictureInPictureController failedToStartPictureInPictureWithError:(NSError *)error;
/*!
@method pictureInPictureControllerWillStopPictureInPicture:
@param pictureInPictureController
The Picture in Picture controller.
@abstract Delegate can implement this method to be notified when Picture in Picture will stop.
*/
- (void)pictureInPictureControllerWillStopPictureInPicture:(AVPictureInPictureController *)pictureInPictureController;
/*!
@method pictureInPictureControllerDidStopPictureInPicture:
@param pictureInPictureController
The Picture in Picture controller.
@abstract Delegate can implement this method to be notified when Picture in Picture did stop.
*/
- (void)pictureInPictureControllerDidStopPictureInPicture:(AVPictureInPictureController *)pictureInPictureController;
/*!
@method pictureInPictureController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:
@param pictureInPictureController
The Picture in Picture controller.
@param completionHandler
The completion handler the delegate needs to call after restore.
@abstract Delegate can implement this method to restore the user interface before Picture in Picture stops.
*/
- (void)pictureInPictureController:(AVPictureInPictureController *)pictureInPictureController restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:(void (^)(BOOL restored))completionHandler;
@end
NS_ASSUME_NONNULL_END