MediaAccessibility lets your app read and honor the system's media accessibility preferences across iOS, macOS, tvOS, and visionOS. You query caption appearance settings using types like MACaptionAppearanceDomain, MACaptionAppearanceDisplayType, MACaptionAppearanceBehavior, MACaptionAppearanceFontStyle, and MACaptionAppearanceTextEdgeStyle to style captions in a way that respects the user's choices for audible and captioned media. The framework also exposes MAFlashingLightsProcessor to mitigate flashing-lights content and MAMusicHapticsManager, working with MAMusicHaptics, to coordinate music haptics for accessible playback.
Caption Appearance 5
Read the user's preferred caption styling so your app can render captions that respect their accessibility choices.
- EnMACaptionAppearanceDomainiOS 7.0+@enum MACaptionAppearanceDomain
- EnMACaptionAppearanceBehavioriOS 7.0+@enum MACaptionAppearanceBehavior
- EnMACaptionAppearanceDisplayTypeiOS 7.0+@enum MACaptionAppearanceDisplayType
- EnMACaptionAppearanceFontStyleiOS 7.0+@enum MACaptionAppearanceFontStyle
- EnMACaptionAppearanceTextEdgeStyleiOS 7.0+@enum MACaptionAppearanceTextEdgeStyle
Music Haptics 2
Coordinate synchronized haptic feedback for music playback to make audible media more accessible.
- ClMAMusicHapticsManageriOS 18.0+A class that manages whether music haptics are active and coordinates haptic playback for music.
- StMAMusicHapticsA structure that represents the music haptics capability used to accompany audio with synchronized haptic feedback.
Flashing-Lights Mitigation 1
Analyze and reduce flashing-lights content that may be harmful to sensitive viewers.
- ClMAFlashingLightsProcessoriOS 17.0+A class that analyzes video content for flashing lights and produces mitigation to reduce its intensity.