Skip to content

MediaAccessibility macOS xcode16.0 b1

Rolf Bjarne Kvinge edited this page Jun 18, 2024 · 4 revisions

#MediaAccessibility.framework

diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h	2024-03-22 19:53:02
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h	2024-05-30 10:34:25
@@ -250,7 +250,7 @@
  @function MACaptionAppearanceCopyForegroundColor
  @abstract User preference for foreground/text color.
  @param domain Preference domain, see  @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @result User preference for foreground/text color.
  */
 MA_EXPORT
@@ -261,7 +261,7 @@
  @abstract User preference for background color.
  @discussion The background color is the color behind each caption glyph.
  @param domain Preference domain, see @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @result User preference for background color.
  */
 MA_EXPORT
@@ -272,7 +272,7 @@
  @abstract User preference for window color.
  @discussion The window color is the color of a box behind all of the caption glyphs.
  @param domain Preference domain, see  @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @result User preference for window color.
  */
 MA_EXPORT
@@ -282,7 +282,7 @@
  @function MACaptionAppearanceGetForegroundOpacity
  @abstract User preference for foreground opacity.
  @param domain Preference domain, see @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @result User preference for foreground opacity.
  */
 MA_EXPORT
@@ -292,7 +292,7 @@
  @function MACaptionAppearanceGetBackgroundOpacity
  @abstract User preference for background opacity.
  @param domain Preference domain, see  @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @result User preference for background opacity.
  */
 MA_EXPORT
@@ -302,7 +302,7 @@
  @function MACaptionAppearanceGetWindowOpacity
  @abstract User preference for window opacity.
  @param domain Preference domain, see  @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @result User preference for window opacity.
  */
 MA_EXPORT
@@ -312,7 +312,7 @@
  @function MACaptionAppearanceGetWindowRoundedCornerRadius
  @abstract User preference for caption-window corner radius.
  @param domain Preference domain, see  @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @result User preference for caption-window corner radius.
  */
 MA_EXPORT
@@ -326,7 +326,7 @@
  @function MACaptionAppearanceCopyFontForStyle
  @abstract User font preference for the specified style.
  @param domain Preference domain, see  @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @param fontStyle Font style, see  @link MACaptionAppearanceFontStyle @/link.
  @result User font preference for the specified style.
  */
@@ -336,7 +336,7 @@
  @function MACaptionAppearanceGetRelativeCharacterSize
  @abstract User preference for font scaling.
  @param domain Preference domain, see  @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @result User font scaling preference for the specified style.
  */
 MA_EXPORT
@@ -346,7 +346,7 @@
  @function MACaptionAppearanceGetTextEdgeStyle
  @abstract User preference for text edge style.
  @param domain Preference domain, see  @link MACaptionAppearanceDomain @/link.
- @param *behavior (see @link MACaptionAppearanceBehavior @/link)
+ @param behavior (see @link MACaptionAppearanceBehavior @/link)
  @result User preference for text edge style.
  */
 MA_EXPORT
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h	2024-04-13 20:25:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h	2024-05-30 02:17:59
@@ -31,7 +31,6 @@
 @interface MAFlashingLightsProcessor : NSObject
 
 /*!
- @function canProcessSurface:
  @abstract Determines whether the flashing lights processor is able to process the content in the surface for flashing lights. This might be false on
  unsupported hardware or unsupported color spaces.
  @result A boolean result.
@@ -39,7 +38,6 @@
 - (BOOL)canProcessSurface:(IOSurfaceRef)surface;
 
 /*!
- @function processSurface:outSurface:timestamp:options:
  @abstract Processes an inSurface by analyzing pixels for sequences of flashing lights and then darkens content to reduce the risk of discomfort from some users.
  The outSurface will contain the mitigated content.
  The timestamp indicates the time at which the surface will be shown in the video playback. FPS will be determined based on the values of the timestamps.
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAMusicHaptics.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAMusicHaptics.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAMusicHaptics.h	1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAMusicHaptics.h	2024-05-30 02:17:59
@@ -0,0 +1,69 @@
+//
+//  MAMusicHaptics.h
+//  MediaAccessibility
+//
+
+/* Music Haptics plays haptic tracks along with audio tracks based on the Now Playing Session.
+   To participate in Music Haptics, add the following key to the Info.plist of the app:
+ 
+ MusicHapticsSupported -> True
+ 
+ To indicate which track is playing accurately, supply the international standard recording code as part of
+ the NowPlayingInfo in the NowPlayingInfoCenter, using the following key:
+ 
+ MPNowPlayingInfoPropertyInternationalStandardRecordingCode
+ 
+ Use the MAMusicHapticsManager class to observe the status of haptic track playback.
+ */
+
+#ifdef __OBJC__
+
+#ifndef MediaAccessibility_MAMusicHapticsManager_h
+#define MediaAccessibility_MAMusicHapticsManager_h
+
+#import <Foundation/Foundation.h>
+#import <MediaAccessibility/MADefinitions.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+MA_EXPORT NSNotificationName const MAMusicHapticsManagerActiveStatusDidChangeNotification API_AVAILABLE(ios(18.0), tvos(18.0), watchos(11.0), macos(15.0), visionos(2.0)) NS_SWIFT_NAME(MAMusicHapticsManager.activeStatusDidChangeNotification);
+
+MA_EXPORT API_AVAILABLE(ios(18.0), tvos(18.0), watchos(11.0), macos(15.0), visionos(2.0))
+@interface MAMusicHapticsManager : NSObject
+
+@property (nonatomic, readonly, class) MAMusicHapticsManager *sharedManager;
+
+/*!
+ @abstract Whether the user setting to indicate Music Haptics are currently active.
+ @result A boolean result.
+ */
+@property (nonatomic, readonly) BOOL isActive;
+
+/*!
+ @abstract In an asynchronous completion handler, returns whether a specific media track with the supplied
+ ISRC has an available haptic track.
+ */
+- (void)checkHapticTrackAvailabilityForMediaMatchingCode:(NSString *)internationalStandardRecordingCode completionHandler:(void (NS_SWIFT_SENDABLE ^ _Nullable)(BOOL musicHapticsAvailable))completionHandler NS_SWIFT_ASYNC_NAME(isHapticTrackAvailable(forMediaMatching:));
+
+/*!
+ @abstract Determine the status of haptic playback for the now playing track asynchronously. This will only be delivered for the app that is the active Now Playing app.
+ */
+- (nullable id<NSCopying>)addStatusObserver:(void (^)(NSString *internationalStandardRecordingCode, BOOL musicHapticsActive))statusHandler;
+- (void)removeStatusObserver:(id<NSCopying>)registrationToken;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif
+
+#ifdef __swift__
+// This struct is not available in Objective-C. Its only purpose is to create a namespace for accessibility symbols in Swift.
+typedef struct MAMusicHaptics { void *_reserved; } MAMusicHaptics;
+#endif
+
+#endif
+
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h	2024-04-13 20:25:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h	2024-05-30 02:17:59
@@ -9,6 +9,7 @@
 #define MediaAccessibility_MAVideoAccommodations_h
 
 #include <MediaAccessibility/MADefinitions.h>
+#include <CoreFoundation/CoreFoundation.h>
 
 CF_ASSUME_NONNULL_BEGIN
 
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h	2024-04-13 20:25:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h	2024-05-30 02:17:59
@@ -9,5 +9,6 @@
 #include <MediaAccessibility/MAImageCaptioning.h>
 #include <MediaAccessibility/MAVideoAccommodations.h>
 #include <MediaAccessibility/MAFlashingLightsProcessing.h>
+#include <MediaAccessibility/MAMusicHaptics.h>
 
 #endif

Clone this wiki locally