Skip to content

MediaAccessibility iOS xcode14.3 beta1

Alex Soto edited this page Mar 15, 2023 · 2 revisions

#MediaAccessibility.framework https://github.com/xamarin/xamarin-macios/pull/17810

diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h	1969-12-31 19:00:00
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h	2023-02-12 14:12:34
@@ -0,0 +1,33 @@
+/*!
+ @header
+ 
+ @discussion
+ Access to user preference for desire to dim flashing or strobing lights in video content.
+ */
+
+#ifndef MediaAccessibility_MAVideoAccommodations_h
+#define MediaAccessibility_MAVideoAccommodations_h
+
+#include <MediaAccessibility/MADefinitions.h>
+
+CF_ASSUME_NONNULL_BEGIN
+
+/*!
+ @function MADimFlashingLightsEnabled
+ @abstract Returns whether the user has enabled the setting to reduce flashing or strobing lights in video content. This setting can also be used to determine if UI in playback controls should be shown.
+ @result A boolean
+ */
+
+MA_EXPORT
+bool MADimFlashingLightsEnabled(void) CF_AVAILABLE(13_3, 16_4);
+
+/*!
+ @constant kMADimFlashingLightsChangedNotification
+ @abstract CFNotification sent to local notification center when mitigation for flashing or strobing lights settings are changed.
+ */
+MA_EXPORT
+const CFStringRef kMADimFlashingLightsChangedNotification CF_AVAILABLE(13_3, 16_4);
+
+CF_ASSUME_NONNULL_END
+
+#endif
diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h	2022-11-05 05:50:48
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h	2023-02-10 12:03:53
@@ -7,5 +7,6 @@
 #include <MediaAccessibility/MACaptionAppearance.h>
 #include <MediaAccessibility/MAAudibleMedia.h>
 #include <MediaAccessibility/MAImageCaptioning.h>
+#include <MediaAccessibility/MAVideoAccommodations.h>
 
 #endif
Clone this wiki locally