-
Notifications
You must be signed in to change notification settings - Fork 507
AVKit iOS xcode13.0 beta1
Manuel de la Pena edited this page Aug 25, 2021
·
3 revisions
#AVKit.framework https://github.com/xamarin/xamarin-macios/pull/12551
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVError.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVError.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVError.h 2021-03-16 08:46:42.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVError.h 2021-06-02 12:46:16.000000000 -0400
@@ -11,6 +11,7 @@
#import <AVKit/AVKitDefines.h>
+
/*!
@constant AVKitErrorDomain
@abstract Domain for errors from AVKit APIs.
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h 2021-03-16 08:40:42.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h 2021-06-01 22:24:47.000000000 -0400
@@ -9,17 +9,39 @@
*/
+#import <Availability.h>
+#import <TargetConditionals.h>
+
+#if TARGET_OS_OSX || TARGET_OS_MACCATALYST
+#import <AVKitCore/AVKitDefines.h>
+#if __has_include(<AVKit/AVKitCore.h>)
+#import <AVKit/AVKitCore.h>
+#else
+#import <AVKitCore/AVKitCore.h>
+#endif // __has_include(<AVKit/AVKitCore.h>)
+
+#else
#import <AVKit/AVKitDefines.h>
+#endif // TARGET_OS_OSX || TARGET_OS_MACCATALYST
+
+
#if TARGET_OS_IPHONE
#import <AVKit/AVError.h>
#import <AVKit/AVPictureInPictureController.h>
+#import <AVKit/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h>
+#import <AVKit/AVPictureInPictureController_VideoCallSupport.h>
#import <AVKit/AVPlayerItem+AVKitAdditions.h>
#import <AVKit/AVPlayerViewController.h>
#import <AVKit/AVPlaybackRouteSelecting.h>
+#import <AVKit/AVRoutePickerView.h>
+
#else
+
#import <AVKit/AVCaptureView.h>
#import <AVKit/AVPictureInPictureController.h>
+#import <AVKit/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h>
#import <AVKit/AVPlayerView.h>
-#endif // TARGET_OS_IPHONE
#import <AVKit/AVRoutePickerView.h>
+
+#endif // TARGET_OS_IPHONE
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h 2021-03-16 08:40:42.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h 2021-06-02 12:46:17.000000000 -0400
@@ -15,3 +15,13 @@
#else
#define AVKIT_EXTERN extern __attribute__((visibility ("default")))
#endif
+
+#if !TARGET_IS_AVKITMACHELPER
+#define AVKIT_ONLY_EXTERN AVKIT_EXTERN
+#define AVKIT_ONLY_API_AVAILABLE(...) API_AVAILABLE(__VA_ARGS__)
+#else
+#define AVKIT_ONLY_EXTERN extern __attribute__((visibility ("hidden")))
+#define AVKIT_ONLY_API_AVAILABLE(...)
+#endif
+
+#define PLATFORM_SUPPORTS_AVKITCORE (TARGET_OS_OSX || TARGET_OS_MACCATALYST)
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h 2021-03-16 08:46:42.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h 2021-06-02 12:43:22.000000000 -0400
@@ -12,6 +12,7 @@
#import <AVKit/AVKitDefines.h>
+
NS_ASSUME_NONNULL_BEGIN
#if TARGET_OS_IPHONE
@@ -21,6 +22,7 @@
@class NSImage;
#endif // TARGET_OS_IPHONE
+@class AVPictureInPictureControllerContentSource;
@protocol AVPictureInPictureControllerDelegate;
/*!
@@ -81,12 +83,26 @@
#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.
+ @method initWithContentSource:
+ @param contentSource
+ The content source to be shown in Picture in Picture.
+ @abstract Use this initializer for content that may be a sample buffer display layer or a player layer.
+ */
+- (instancetype)initWithContentSource:(AVPictureInPictureControllerContentSource *)contentSource API_AVAILABLE(ios(15.0), tvos(15.0), macos(12.0)) API_UNAVAILABLE(watchos) NS_DESIGNATED_INITIALIZER;
+
+/*!
+ @method initWithPlayerLayer:
+ @param playerLayer
+ The player layer from which to source the media content for the Picture in Picture controller.
+ @abstract Initialize the picture in picture controller with a player layer.
+ */
+- (nullable instancetype)initWithPlayerLayer:(AVPlayerLayer *)playerLayer;
+
+/*!
+ @property contentSource
+ @abstract The receiver's content source. Can be changed while Picture in Picture is active, but the new content source must be ready for display (in the case of AVPlayerLayer, that means AVPlayerLayer.isReadyForDisplay must return YES), otherwise Picture in Picture will stop.
*/
-- (nullable instancetype)initWithPlayerLayer:(AVPlayerLayer *)playerLayer NS_DESIGNATED_INITIALIZER;
+@property (nonatomic, strong, nullable) AVPictureInPictureControllerContentSource *contentSource API_AVAILABLE(ios(15.0), tvos(15.0), macos(12.0)) API_UNAVAILABLE(watchos);
/*!
@property playerLayer
@@ -147,9 +163,9 @@
@property (nonatomic) BOOL requiresLinearPlayback API_AVAILABLE(ios(14.0), macos(11.0), tvos(14.0)) API_UNAVAILABLE(watchos);
/*!
- @property canStartPictureInPictureAutomaticallyFromInline
- @abstract Indicates whether Picture in Picture should be allowed to start automatically when transitioning to background when the receiver’s content is embedded inline. Default is NO.
- @discussion This property must only be set to YES for content intended to be the user's primary focus.
+ @property canStartPictureInPictureAutomaticallyFromInline
+ @abstract Indicates whether Picture in Picture should be allowed to start automatically when transitioning to background when the receiver’s content is embedded inline. Default is NO.
+ @discussion This property must only be set to YES for content intended to be the user's primary focus.
*/
@property (nonatomic) BOOL canStartPictureInPictureAutomaticallyFromInline API_AVAILABLE(ios(14.2)) API_UNAVAILABLE(watchos, tvos, macos);
@@ -157,6 +173,35 @@
/*!
+ @class AVPictureInPictureControllerContentSource
+ @abstract A content source for AVPictureInPictureController.
+ @discussion Create a content source with an appropriate layer, and use it to initialize the AVPictureInPictureController.
+ */
+API_AVAILABLE(ios(15.0), tvos(15.0), macos(12.0)) API_UNAVAILABLE(watchos)
+NS_SWIFT_NAME(AVPictureInPictureController.ContentSource)
+@interface AVPictureInPictureControllerContentSource : NSObject
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+/*!
+ @method initWithPlayerLayer:
+ @param playerLayer
+ The player layer to be shown in Picture in Picture.
+ @abstract Use this initializer for a content source with a player layer.
+*/
+- (instancetype)initWithPlayerLayer:(AVPlayerLayer *)playerLayer;
+
+/*!
+ @property playerLayer
+ @abstract The receiver's player layer.
+*/
+@property (nonatomic, nullable, readonly) AVPlayerLayer *playerLayer;
+
+@end
+
+
+/*!
@protocol AVPictureInPictureControllerDelegate
@abstract A protocol for delegates of AVPictureInPictureController.
*/
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h 2021-06-02 12:43:22.000000000 -0400
@@ -0,0 +1,120 @@
+/*
+ File: AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h
+
+ Framework: AVKit
+
+ Copyright © 2020 Apple Inc. All rights reserved.
+ */
+
+#import <AVFoundation/AVSampleBufferDisplayLayer.h>
+#import <AVKit/AVPictureInPictureController.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class AVPictureInPictureControllerContentSource;
+@class AVPictureInPicturePlaybackState;
+@protocol AVPictureInPictureSampleBufferPlaybackDelegate;
+
+@interface AVPictureInPictureController ()
+
+/*!
+ @method invalidatePlaybackState
+ @abstract Informs Picture in Picture controller that it should request an updated playback state from its sampleBufferPlaybackDelegate.
+ @discussion This should always be called whenever playback is paused or unpaused, or the underlying content duration changes.
+*/
+- (void)invalidatePlaybackState API_AVAILABLE(ios(15.0), tvos(15.0), macos(12.0)) API_UNAVAILABLE(watchos);
+
+@end
+
+
+/*!
+ @protocol AVPictureInPictureSampleBufferPlaybackDelegate
+ @abstract A protocol for controlling playback from an AVSampleBufferDisplayLayer in Picture in Picture.
+*/
+API_AVAILABLE(ios(15.0), tvos(15.0), macos(12.0)) API_UNAVAILABLE(watchos)
+@protocol AVPictureInPictureSampleBufferPlaybackDelegate <NSObject>
+
+/*!
+ @method pictureInPictureController:setPlaying:
+ @param pictureInPictureController
+ The Picture in Picture controller.
+ @param playing
+ Whether the content should play or pause.
+ @abstract Informs delegate that the user initiated a request to play or pause the content.
+*/
+- (void)pictureInPictureController:(AVPictureInPictureController *)pictureInPictureController setPlaying:(BOOL)playing NS_SWIFT_NAME(pictureInPictureController(_:setPlaying:));
+
+/*!
+ @method pictureInPictureControllerTimeRangeForPlayback:
+ @param pictureInPictureController
+ The Picture in Picture controller.
+ @abstract Allows delegate to inform Picture in Picture controller of the current playable time range. May be called multiple times during playback. Time ranges with finite duration should always contain the current time of the sample buffer display layer's timebase.
+ @discussion Clients should return a time range with a duration of kCMTimeInfinity to indicate live content. When there is no content to play, they should return kCMTimeRangeInvalid. This method will be called whenever -[AVPictureInPictureController invalidatePlaybackState] is called and at other times as needed by the system.
+ @returns A CMTimeRange indicating the content's time range.
+*/
+- (CMTimeRange)pictureInPictureControllerTimeRangeForPlayback:(AVPictureInPictureController *)pictureInPictureController NS_SWIFT_NAME(pictureInPictureControllerTimeRangeForPlayback(_:));
+
+/*!
+ @method pictureInPictureControllerIsPlaybackPaused:
+ @param pictureInPictureController
+ The Picture in Picture controller.
+ @abstract Allows delegate to indicate whether the playback UI should reflect a playing or paused state, regardless of what the current playback rate might be. May be called multiple times during playback.
+ @discussion This method will be called whenever -[AVPictureInPictureController invalidatePlaybackState] is called and at other times as needed by the system.
+ @returns A boolean value indicating whether or not the playback UI should indicate playback has been paused or is playing.
+*/
+- (BOOL)pictureInPictureControllerIsPlaybackPaused:(AVPictureInPictureController *)pictureInPictureController NS_SWIFT_NAME(pictureInPictureControllerIsPlaybackPaused(_:));
+
+/*!
+ @method pictureInPictureController:didTransitionToRenderSize:
+ @param pictureInPictureController
+ The Picture in Picture controller.
+ @param newRenderSize
+ The rendered size, in pixels, of Picture in Picture content.
+ @abstract This method is called when the system Picture in Picture window changes size. Delegate take the new render size and AVPictureInPictureController.isPictureInPictureActive into account when choosing media variants in order to avoid uncessary decoding overhead.
+*/
+- (void)pictureInPictureController:(AVPictureInPictureController *)pictureInPictureController didTransitionToRenderSize:(CMVideoDimensions)newRenderSize NS_SWIFT_NAME(pictureInPictureController(_:didTransitionToRenderSize:));
+
+/*!
+ @method pictureInPictureController:skipByInterval:completionHandler:
+ @param pictureInPictureController
+ The Picture in Picture controller.
+ @param skipInterval
+ The interval by which to skip playback.
+ @param completionHandler
+ A closure that must be invoked to indicate that the skip operation has completed.
+ @abstract Informs delegate that the user has requested skipping forward or backward by the time indicated by the interval.
+ @discussion Clients may choose to seek by a different interval for efficiency reasons (for example, seeking to a keyframe) or if the requested interval falls outside of the playable timeline. Clients must invoke the completion handler to indicate the seek operation has finished or failed. By the time the completion handler has been invoked, the timebase should reflect the current time and playback rate. Failure to invoke this completion handler is an application error and will result in playback UI permanently stuck in a “seeking” state.
+*/
+- (void)pictureInPictureController:(AVPictureInPictureController *)pictureInPictureController skipByInterval:(CMTime)skipInterval completionHandler:(void (^)(void))completionHandler NS_SWIFT_NAME(pictureInPictureController(_:skipByInterval:completion:));
+
+@end
+
+
+API_AVAILABLE(ios(15.0), tvos(15.0), macos(12.0)) API_UNAVAILABLE(watchos)
+@interface AVPictureInPictureControllerContentSource (AVSampleBufferDisplayLayerSupport)
+
+/*!
+ @method initWithSampleBufferDisplayLayer:
+ @param sampleBufferDisplayLayer
+ The sample buffer display layer to be shown in Picture in Picture.
+ @param playbackDelegate
+ The playback delegate for controlling sample buffer display layer's playback in Picture in Picture.
+ @abstract Use this initializer for a content source with a sample buffer display layer and playback delegate.
+*/
+- (instancetype)initWithSampleBufferDisplayLayer:(AVSampleBufferDisplayLayer *)sampleBufferDisplayLayer playbackDelegate:(id<AVPictureInPictureSampleBufferPlaybackDelegate>)playbackDelegate;
+
+/*!
+ @property sampleBufferDisplayLayer
+ @abstract The receiver's sample buffer display layer.
+*/
+@property (nonatomic, nullable, readonly) AVSampleBufferDisplayLayer *sampleBufferDisplayLayer;
+
+/*!
+ @property sampleBufferPlaybackDelegate
+ @abstract The receiver's sample buffer playback delegate.
+*/
+@property (nonatomic, nullable, weak, readonly) id<AVPictureInPictureSampleBufferPlaybackDelegate> sampleBufferPlaybackDelegate;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h 2021-06-02 12:46:17.000000000 -0400
@@ -0,0 +1,66 @@
+/*
+ File: AVPictureInPictureController_VideoCallSupport.h
+
+ Framework: AVKit
+
+ Copyright © 2021 Apple Inc. All rights reserved.
+ */
+
+#import <AVKit/AVPictureInPictureController.h>
+#import <UIKit/UIKit.h>
+
+@class UIView;
+
+NS_ASSUME_NONNULL_BEGIN
+
+/*!
+ @class AVPictureInPictureVideoCallViewController
+ @abstract Subclass or directly use `AVPictureInPictureVideoCallViewController` as the container for content to be shown in Picture in Picture while video calls are active.
+ */
+API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(tvos, macos, watchos)
+@interface AVPictureInPictureVideoCallViewController : UIViewController
+@end
+
+
+/*!
+ @abstract A category on `AVPictureInPictureControllerContentSource` for creating a content source to be used to support active video calls, including camera access, in Picture in Picture.
+ @discussion
+ - This class must only be used when a video call is active. When a video call ends, set `AVPictureInPictureController.contentSource` to `nil` or to another content source.
+ - Use of this class requires an entitlement to use the camera in Picture in Picture. See http://developer.apple.com/contact/request/multitasking-camera-access.
+ - Note that even when Picture in Picture is active, the device may be locked or Picture in Picture may be stashed off screen. In such cases, the camera will be unavailable until the device is unlocked or Picture in Picture is unstashed.
+ - See `AVPictureInPictureController` for functionality common across all Picture in Picture scenarios, such as callbacks to determine when Picture In Picture starts or to indicate a preference for Picture in Picture to start automatically even when not full screen.
+ */
+@interface AVPictureInPictureControllerContentSource (VideoCallSupport)
+
+/*!
+ @method initWithActiveVideoCallSourceView:contentViewController:
+ @param sourceView
+ The view which contains content associated with the call.
+ @param contentViewController
+ The view controller that should appear in the system's Picture in Picture window.
+ @abstract Initializes a new `AVPictureInPictureControllerContentSource` suitable for supporting an active video call. This object should only be used for the duration of the call.
+*/
+- (instancetype)initWithActiveVideoCallSourceView:(UIView *)sourceView contentViewController:(AVPictureInPictureVideoCallViewController *)contentViewController API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, tvos, watchos);
+
+/*!
+ @property activeVideoCallSourceView
+ @abstract When a video call is active and the application is foreground, this view contains content associated with the call.
+ @discussion `AVPictureInPictureController` uses this view's layout frame and visibility to determine whether or not Picture in Picture should begin automatically when the app moves to background.
+ The layout frame also influences the animation when entering and exiting Picture in Picture.
+*/
+@property (nonatomic, weak, readonly) UIView *activeVideoCallSourceView API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, tvos, watchos);
+
+/*!
+ @property activeVideoCallContentViewController
+ @abstract This view controller will appear in the system's Picture in Picture window when Picture in Picture is active.
+ @discussion This view controller may set a custom `preferredContentSize` which will influence both the aspect ratio and the size of the Picture in Picture window.
+ When this view controller's appearance methods indicate that it has appeared on screen, content associated with the video call should be placed in its view hierarchy.
+ Although apps can choose to move content from their source view to this view controller, it is also valid to show different views, as long as they represent the same video call.
+ The content should always fill the view controller's view's bounds.
+ Note that this view controller's view is not interactive and will not receive touches or other user input.
+*/
+@property (nonatomic, readonly) AVPictureInPictureVideoCallViewController *activeVideoCallContentViewController API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, tvos, watchos);
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h 2021-03-16 08:46:42.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h 2021-06-02 11:08:24.000000000 -0400
@@ -153,6 +153,16 @@
- (void)playerViewController:(AVPlayerViewController *)playerViewController willEndFullScreenPresentationWithAnimationCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator API_AVAILABLE(ios(12.0));
/*!
+ @method playerViewController:restoreUserInterfaceForFullScreenExitWithCompletionHandler:
+ @param playerViewController
+ The player view controller.
+ @param completionHandler
+ The completion handler the delegate must call after restoring the interface for an exit full screen transition.
+ @abstract The delegate can implement this method to restore the user interface before exiting fullscreen.
+ */
+- (void)playerViewController:(AVPlayerViewController *)playerViewController restoreUserInterfaceForFullScreenExitWithCompletionHandler:(void (^)(BOOL restored))completionHandler API_AVAILABLE(ios(15.0));
+
+/*!
@method playerViewControllerWillStartPictureInPicture:
@param playerViewController
The player view controller.
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status