Skip to content

MediaAccessibility tvOS xcode26.0 b1

Alex Soto edited this page Jun 9, 2025 · 1 revision

#MediaAccessibility.framework

diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h	2025-04-19 04:49:40
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h	2025-05-19 03:26:33
@@ -362,9 +362,44 @@
 MA_EXPORT
 MACaptionAppearanceTextEdgeStyle MACaptionAppearanceGetTextEdgeStyle(MACaptionAppearanceDomain domain, MACaptionAppearanceBehavior * __nullable behavior) CF_AVAILABLE(10_9, 7_0);
 
-CF_ASSUME_NONNULL_END
+/*!
+ @function MACaptionAppearanceCopyProfileIDs
+ @abstract Copies all system and user defined profiles, each represented by a CFString containing a non-human-readable ID
+ @result An array of strings where each string represents a unique caption profile ID.
+ */
+MA_EXPORT CFArrayRef MACaptionAppearanceCopyProfileIDs(void) CF_AVAILABLE(16_0, 19_0) CF_RETURNS_RETAINED;
 
+/*!
+ @function MACaptionAppearanceSetActiveProfileID
+ @abstract Sets the currently-selected caption drawing profileID system wide. Behavior is undefined if NULL or an invalid profileID is provided
+ @param profileID The profileID to make active.
+ */
+MA_EXPORT void MACaptionAppearanceSetActiveProfileID(CFStringRef profileID) CF_AVAILABLE(16_0, 19_0);
 
+/*!
+ @function MACaptionAppearanceCopyActiveProfileID
+ @abstract Gets the currently-selected caption drawing profileID system wide.
+ @result The currently-selected profileID.
+ */
+MA_EXPORT CFStringRef MACaptionAppearanceCopyActiveProfileID(void) CF_AVAILABLE(16_0, 19_0) CF_RETURNS_RETAINED;
+
+/*!
+ @function MACaptionAppearanceCopyProfileName
+ @abstract Copies the human-readable name of a profileID
+ @param profileID The profileID to copy the name of
+ @result A human-readable name of the provided profileID
+ */
+MA_EXPORT CFStringRef MACaptionAppearanceCopyProfileName(CFStringRef profileID) CF_AVAILABLE(16_0, 19_0) CF_RETURNS_RETAINED;
+
+/*!
+ @function MACaptionAppearanceExecuteBlockForProfileID
+ @abstract Executes a block of code as if the provided profileID was active. This is used in cases such as a need to get the fonts and colors of a profileID without changing the currently selected profileID.
+ @param profileID The profileID which will appear active when executing the block
+ @param aBlock the block of code to execute
+ */
+MA_EXPORT void MACaptionAppearanceExecuteBlockForProfileID(CFStringRef profileID, void (^aBlock)(void)) CF_AVAILABLE(16_0, 19_0);
+
+CF_ASSUME_NONNULL_END
 MA_EXTERN_C_END
 
 #endif /* MediaAccessibility_MACaptionAppearance_h */
Clone this wiki locally