-
Notifications
You must be signed in to change notification settings - Fork 514
MediaPlayer macOS xcode13.0 rc
Alex Soto edited this page Sep 14, 2021
·
1 revision
#MediaPlayer.framework
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h 2021-08-09 03:23:20.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h 2021-08-03 21:52:27.000000000 -0400
@@ -206,11 +206,7 @@
//-----------------------------------------------------
-#if TARGET_OS_OSX
-@class NSImage;
-#else
-@class UIImage;
-#endif
+@class NSImage, UIImage;
MP_API(ios(3.0), tvos(9.0), macos(10.12.2), watchos(5.0))
@interface MPMediaItemArtwork : NSObject
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h 2021-08-07 05:22:48.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h 2021-08-03 21:52:27.000000000 -0400
@@ -44,7 +44,7 @@
- (void)endGeneratingLibraryChangeNotifications;
+ (MPMediaLibraryAuthorizationStatus)authorizationStatus MP_API(ios(9.3));
-+ (void)requestAuthorization:(void (^)(MPMediaLibraryAuthorizationStatus status))completionHandler MP_API(ios(9.3));
++ (void)requestAuthorization:(void (^)(MPMediaLibraryAuthorizationStatus status))handler MP_API(ios(9.3));
- (void)addItemWithProductID:(NSString *)productID completionHandler:(nullable void (^)(NSArray <__kindof MPMediaEntity *> *entities, NSError * __nullable error))completionHandler MP_API(ios(9.3));
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h 2021-08-07 05:22:48.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h 2021-08-03 21:52:28.000000000 -0400
@@ -7,7 +7,7 @@
#import <MediaPlayer/MediaPlayerDefines.h>
-#if MP_HAS_HEADER(UIKit, UIViewController.h)
+#if MP_HAS_UIKIT
#import <UIKit/UIKit.h>
#import <MediaPlayer/MPMediaItem.h>
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h 2021-08-07 05:22:48.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h 2021-08-03 21:52:27.000000000 -0400
@@ -56,10 +56,10 @@
- (void)addItemWithProductID:(NSString *)productID completionHandler:(nullable void (^)(NSError * __nullable error))completionHandler
MP_API(ios(9.3))
- API_UNAVAILABLE(macos);
+ MP_UNAVAILABLE(macos);
- (void)addMediaItems:(NSArray<MPMediaItem *> *)mediaItems completionHandler:(nullable void (^)(NSError * __nullable error))completionHandler
MP_API(ios(9.3))
- API_UNAVAILABLE(macos);
+ MP_UNAVAILABLE(macos);
@end
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h 2021-08-06 23:45:32.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h 2021-08-03 21:52:27.000000000 -0400
@@ -7,16 +7,12 @@
#import <MediaPlayer/MediaPlayerDefines.h>
-#if MP_HAS_HEADER(UIKit, UIView.h)
+#if MP_HAS_UIKIT
#import <Foundation/Foundation.h>
#import <MediaPlayer/MPMediaPlayback.h>
#import <UIKit/UIKit.h>
-#ifndef MP_DEPRECATED_BEGIN
-#define MP_DEPRECATED_BEGIN(...)
-#define MP_DEPRECATED_END
-#endif
MP_DEPRECATED_BEGIN("Use AVPlayerViewController in AVKit", ios(3.2, 9.0))
MP_UNAVAILABLE_BEGIN(watchos, macos)
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h 2021-08-07 05:22:49.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h 2021-08-03 21:52:28.000000000 -0400
@@ -7,7 +7,7 @@
#import <MediaPlayer/MediaPlayerDefines.h>
-#if MP_HAS_HEADER(UIKit, UIViewController.h)
+#if MP_HAS_UIKIT
#import <UIKit/UIViewController.h>
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h 2021-08-09 03:26:23.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h 2021-08-03 21:54:03.000000000 -0400
@@ -57,13 +57,13 @@
@interface MPMusicPlayerController : NSObject <MPMediaPlayback>
/// Playing items with applicationMusicPlayer does not affect Music's playback state.
-@property (class, nonatomic, readonly) MPMusicPlayerController *applicationMusicPlayer;
+@property (class, readonly) MPMusicPlayerController *applicationMusicPlayer;
/// Similar to applicationMusicPlayer, but allows direct manipulation of the queue.
-@property (class, nonatomic, readonly) MPMusicPlayerApplicationController *applicationQueuePlayer MP_API(ios(10.3), tvos(14.0));
+@property (class, readonly) MPMusicPlayerApplicationController *applicationQueuePlayer MP_API(ios(10.3), tvos(14.0));
/// Playing media items with the systemMusicPlayer will replace the user's current Music state.
-@property (class, nonatomic, readonly) MPMusicPlayerController<MPSystemMusicPlayerController> *systemMusicPlayer;
+@property (class, readonly) MPMusicPlayerController<MPSystemMusicPlayerController> *systemMusicPlayer;
MP_INIT_UNAVAILABLE
@@ -123,7 +123,7 @@
- (void)beginGeneratingPlaybackNotifications;
- (void)endGeneratingPlaybackNotifications;
-@property (class, nonatomic, readonly) MPMusicPlayerController *iPodMusicPlayer
+@property (class, readonly) MPMusicPlayerController *iPodMusicPlayer
MP_DEPRECATED_WITH_REPLACEMENT("systemMusicPlayer", ios(3.0, 8.0))
API_UNAVAILABLE(tvos);
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h 2021-08-07 05:22:48.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h 2021-08-03 21:52:27.000000000 -0400
@@ -7,7 +7,7 @@
#import <MediaPlayer/MediaPlayerDefines.h>
-#if MP_HAS_HEADER(UIKit, UIView.h)
+#if MP_HAS_UIKIT
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h 2021-08-07 05:22:48.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h 2021-08-03 21:52:28.000000000 -0400
@@ -2,12 +2,9 @@
// MediaPlayerDefines.h
// MediaPlayer
//
-// Copyright © 2021 Apple Inc. All rights reserved.
+// Copyright 2008-2019 Apple Inc. All rights reserved.
//
-#ifndef MP_DEFINES
-#define MP_DEFINES
-
#import <Availability.h>
#import <TargetConditionals.h>
@@ -17,6 +14,7 @@
#define _MP_EXTERN extern
#endif
#define _MP_VISIBLE __attribute__((visibility("default")))
+#define _MP_VISIBLE_BEGIN _Pragma("(clang attribute _MP_VISIBLE)")
#define _MP_HIDDEN __attribute__((visibility("hidden")))
#ifndef MP_EXTERN
@@ -26,7 +24,7 @@
#pragma mark - Availability
#define MP_API(...) __API_AVAILABLE(__VA_ARGS__) _MP_VISIBLE
-#define MP_API_BEGIN __API_AVAILABLE_BEGIN
+#define MP_API_BEGIN(...) __API_AVAILABLE_BEGIN(__VA_ARGS__) _MP_VISIBLE_BEGIN
#define MP_API_END __API_AVAILABLE_END
#define MP_UNAVAILABLE(...) __API_UNAVAILABLE(__VA_ARGS__)
@@ -34,40 +32,19 @@
#define MP_UNAVAILABLE_END __API_UNAVAILABLE_END
#define MP_DEPRECATED(...) __API_DEPRECATED(__VA_ARGS__) _MP_VISIBLE
-#define MP_DEPRECATED_BEGIN __API_DEPRECATED_BEGIN
+#define MP_DEPRECATED_BEGIN(...) __API_DEPRECATED_BEGIN(__VA_ARGS__) _MP_VISIBLE_BEGIN
#define MP_DEPRECATED_END __API_DEPRECATED_END
#define MP_DEPRECATED_WITH_REPLACEMENT(...) __API_DEPRECATED_WITH_REPLACEMENT(__VA_ARGS__)
#define MP_DEPRECATED_WITH_REPLACEMENT_BEGIN(...) __API_DEPRECATED_WITH_REPLACEMENT_BEGIN(__VA_ARGS__)
#define MP_DEPRECATED_WITH_REPLACEMENT_END __API_DEPRECATED_WITH_REPLACEMENT_END
-#define MP_FALLTHROUGH __attribute__((fallthrough))
-#define MP_TYPE_PROTOCOL __attribute((objc_non_runtime_protocol))
-#define MP_COMPLETION __attribute__((called_once))
-#define MP_OVERLOAD __attribute__((overloadable))
-#define MP_FINAL_CLASS __attribute__((objc_subclassing_restricted))
-
-#pragma mark - Utility
-
-#define __MP_OVERRIDE_HAS(FRAMEWORK) ((defined(MP_HAS_##FRAMEWORK) && MP_HAS_##FRAMEWORK) || (!defined(MP_HAS_##FRAMEWORK) && 1))
-#define MP_HAS(FRAMEWORK) __has_include(<FRAMEWORK/FRAMEWORK.h>) && __MP_OVERRIDE_HAS(FRAMEWORK)
-#define MP_HAS_HEADER(FRAMEWORK, HEADER) __has_include(<FRAMEWORK/HEADER>)
+#pragma mark - Framework Availability
+#define MP_HAS_UIKIT __has_include(<UIKit/UIView.h>)
-#if defined(__OBJC__) && __OBJC__
+#pragma mark - Utility
#define MP_INIT_UNAVAILABLE \
+ (instancetype)new NS_UNAVAILABLE; \
- (instancetype)init NS_UNAVAILABLE;
-
-#endif
-
-
-
-#pragma mark - Additions
-
-#if __has_include(<MediaPlayer/MediaPlayerDefines_Additions.h>)
-#import <MediaPlayer/MediaPlayerDefines_Additions.h>
-#endif
-
-#endif
- 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