-
Notifications
You must be signed in to change notification settings - Fork 515
AVKit iOS xcode14.0 beta2
TJ Lambert edited this page Aug 30, 2022
·
3 revisions
#AVKit.framework https://github.com/xamarin/xamarin-macios/pull/15811
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h 2022-05-21 09:08:49.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h 2022-06-14 02:50:06.000000000 -0400
@@ -36,7 +36,6 @@
#import <AVKit/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h>
#import <AVKit/AVPictureInPictureController_VideoCallSupport.h>
#import <AVKit/AVPlaybackSpeed.h>
-#import <AVKit/AVPlaybackSpeedCollection.h>
#import <AVKit/AVPlayerItem+AVKitAdditions.h>
#import <AVKit/AVPlayerViewController.h>
#import <AVKit/AVPlaybackRouteSelecting.h>
@@ -47,7 +46,6 @@
#import <AVKit/AVPictureInPictureController.h>
#import <AVKit/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h>
#import <AVKit/AVPlaybackSpeed.h>
-#import <AVKit/AVPlaybackSpeedCollection.h>
#import <AVKit/AVPlayerView.h>
#import <AVKit/AVRoutePickerView.h>
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h 2022-05-31 14:51:32.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h 2022-06-17 15:28:34.000000000 -0400
@@ -26,7 +26,7 @@
@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.
+ - In iOS 16 and later, you can use the camera in Picture in Picture mode by enabling a capture session’s isMultitaskingCameraAccessEnabled property. Use of this class before iOS 16.0 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.
*/
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeedCollection.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeedCollection.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeedCollection.h 2022-05-31 14:51:32.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeedCollection.h 1969-12-31 19:00:00.000000000 -0500
@@ -1,76 +0,0 @@
-//
-// AVPlaybackSpeedCollection.h
-// AVKit
-//
-// Created by adesjarlais on 11/13/21.
-// Copyright © 2021 Apple Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-
-#if TARGET_OS_OSX || TARGET_OS_MACCATALYST
-#import <AVKitCore/AVKitDefines.h>
-#import <AVKitCore/AVPlaybackSpeed.h>
-#else
-#import <AVKit/AVKitDefines.h>
-#import <AVKit/AVPlaybackSpeed.h>
-#endif // #TARGET_OS_OSX || TARGET_OS_MACCATALYST
-
-
-NS_ASSUME_NONNULL_BEGIN
-
-// MARK: -
-
-/*!
- @class AVPlaybackSpeedCollection
- @abstract A class representing a collection of user selectable playback speeds in a playback UI.
- */
-API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0)) API_UNAVAILABLE(watchos)
-@interface AVPlaybackSpeedCollection : NSObject
-
-AVKIT_INIT_UNAVAILABLE
-
-/*!
- @method defaultSpeedFromList
- @param speeds
- The playback speeds to select from
- @abstract Returns the playback speed that should be used by default from the given list.
- */
-+ (AVPlaybackSpeed *)defaultSpeedFromList:(NSArray<AVPlaybackSpeed *> *)speeds;
-
-
-/*!
- @method collectionWithSpeeds:
- @param playbackSpeeds
- A list of playback speeds to be used for this collection.
- @abstract Creates a new instance of an AVPlaybackSpeedCollection with the given playback speeds.
- */
-+ (instancetype)collectionWithSpeeds:(NSArray<AVPlaybackSpeed *> *)playbackSpeeds;
-
-
-/*!
- @property speeds
- @abstract The list of playback speeds in this collection.
- */
-@property (nonatomic, readonly) NSArray<AVPlaybackSpeed *> *speeds;
-
-/*!
- @property selectedSpeed
- @abstract The currently selected playback speed in this collection.
- @discussion Changes to the associated AVPlayer's defaultRate will be reflected in this property and vice versa. If the associated AVPlayer's defaultRate is set to a value that does not match a speed in the collection, the selected speed will be set to nil.
- */
-@property (nonatomic, readonly, nullable) AVPlaybackSpeed *selectedSpeed;
-
-
-/*!
- @method selectSpeed
- @param speed
- The playback speed to select.
- @abstract Selects the input AVPlaybackSpeed on this collection.
- @discussion Calls to selectSpeed: with AVPlaybackSpeeds not contained within this collection will be ignored.
- */
-- (void)selectSpeed:(AVPlaybackSpeed *)speed;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h 2022-05-31 15:04:46.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h 2022-06-17 15:26:20.000000000 -0400
@@ -14,7 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
@class AVInterstitialTimeRange;
-@class AVPlaybackSpeedCollection;
+@class AVPlaybackSpeed;
@protocol AVPlayerViewControllerDelegate;
@@ -131,14 +131,31 @@
*/
@property (nonatomic, weak, nullable) id <AVPlayerViewControllerDelegate> delegate API_AVAILABLE(ios(9.0));
+/**
+ @property speeds
+ @abstract A list of user selectable playback speeds to be shown in the playback speed control.
+ @discussion By default this property will be set to the systemDefaultSpeeds class property. Setting this property to an empty list will hide the playback speed selection UI.
+
+ To set the currently selected playback speed programmatically, either set the defaultRate on the AVPlayer associated with this view controller or use the selectSpeed method on AVPlayerViewController.
+ */
+@property (nonatomic, copy) NSArray<AVPlaybackSpeed *> *speeds API_AVAILABLE(ios(16.0));
+
+/*!
+ @property selectedSpeed
+ @abstract The currently selected playback speed.
+ @discussion Changes to the associated AVPlayer's defaultRate will be reflected in this property and vice versa. If the associated AVPlayer's defaultRate is set to a value that does not match a speed in the speeds list property, the selected speed will be nil.
+ */
+@property (nonatomic, readonly, nullable) AVPlaybackSpeed *selectedSpeed API_AVAILABLE(ios(16.0));
+
/*!
- @property playbackSpeedCollection
- @abstract A collection of user selectable playback speeds to be shown in the standard playback controls UI.
- @discussion By default this property will be set to an AVPlaybackSpeedCollection with the platform default playback speeds (defined in [AVPlaybackSpeed systemDefaultSpeeds]). Setting this property to nil will hide the playback speed selection UI.
-
- To set the currently selected playback speed programmatically, either set the defaultRate on the AVPlayer associated with this view controller or call selectSpeed: the playback collection to the desired speed.
+ @property selectSpeed
+ @param speed
+ The playback speed to select.
+ @abstract Sets the input AVPlaybackSpeed as the selected speed.
+ @discussion Calls to selectSpeed with AVPlaybackSpeeds not contained within the speeds property array will be ignored.
*/
-@property (nonatomic, readwrite, nullable) AVPlaybackSpeedCollection *playbackSpeedCollection API_AVAILABLE(ios(16.0));
+- (void)selectSpeed:(AVPlaybackSpeed *)speed API_AVAILABLE(ios(16.0));
+
@end
- 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
- xcode16.1 Binding Status
- xcode16.2 Binding Status