Expand description
§Bindings to the MediaAccessibility framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- MACaption
Appearance Behavior MACaptionAppearance - MACaptionAppearanceBehavior is used to determine how a preference value should be used.
- MACaption
Appearance Display Type MACaptionAppearance - MACaptionAppearanceDisplayType is used to specify the the type of captions that should be displayed
- MACaption
Appearance Domain MACaptionAppearance - MACaptionAppearanceDomain is used to specify which domain of preferences to access.
- MACaption
Appearance Font Style MACaptionAppearance - MACaptionAppearanceFontStyle is used to specify a font style
- MACaption
Appearance Text Edge Style MACaptionAppearance - MACaptionAppearanceTextEdgeStyle is used to specify a text-edge style.
- MAFlashing
Lights Processor MAFlashingLightsProcessingandobjc2 - Apple’s documentation
- MAFlashing
Lights Processor Result MAFlashingLightsProcessingandobjc2 - Apple’s documentation
- MAMusic
Haptics Manager MAMusicHapticsandobjc2 - Apple’s documentation
Statics§
- MAMedia
Characteristic ⚠Describes Music AndSound ForAccessibility MACaptionAppearance - A media characteristic that indicates that a track or media selection option includes legible content in the language of its specified locale that:
- MAMedia
Characteristic ⚠Describes Video ForAccessibility MAAudibleMedia - A media characteristic that indicates that a track or media selection option includes audible content that descries a video for accessibility.
- MAMedia
Characteristic ⚠Transcribes Spoken Dialog ForAccessibility MACaptionAppearance - A media characteristic that indicates that a track or media selection option includes legible content in the language of its specified locale that:
- MAMusic
Haptics ⚠Manager Active Status DidChange Notification MAMusicHapticsandobjc2-foundation - Apple’s documentation
- kMAAudible
Media ⚠Settings Changed Notification MAAudibleMedia - CFNotification sent when any user-defined audible media settings are changed.
- kMACaption
Appearance ⚠Settings Changed Notification MACaptionAppearance - CFNotification sent when any user-defined captioning settings are changed.
- kMADim
Flashing ⚠Lights Changed Notification MAVideoAccommodations - CFNotification sent to local notification center when mitigation for flashing or strobing lights settings are changed.
Functions§
- MAAudible
Media ⚠Copy Preferred Characteristics MAAudibleMedia - User preference for audible media characteristic
- MACaption
Appearance ⚠AddSelected Language MACaptionAppearance - Adds a user’s selected caption language to stack of languages.
- MACaption
Appearance ⚠Copy Active ProfileID MACaptionAppearance - Gets the currently-selected caption drawing profileID system wide.
- MACaption
Appearance ⚠Copy Background Color MACaptionAppearanceandobjc2-core-graphics - User preference for background color.
- MACaption
Appearance ⚠Copy Font Descriptor ForStyle MACaptionAppearanceandobjc2-core-text - User font preference for the specified style.
- MACaption
Appearance ⚠Copy Foreground Color MACaptionAppearanceandobjc2-core-graphics - User preference for foreground/text color.
- MACaption
Appearance ⚠Copy Preferred Captioning Media Characteristics MACaptionAppearance - User preference for captioning media characteristic
- MACaption
Appearance ⚠Copy ProfileI Ds MACaptionAppearance - Copies all system and user defined profiles, each represented by a CFString containing a non-human-readable ID
- MACaption
Appearance ⚠Copy Profile Name MACaptionAppearance - Copies the human-readable name of a profileID
- MACaption
Appearance ⚠Copy Selected Languages MACaptionAppearance - Copies the user’s preferred caption languages.
- MACaption
Appearance ⚠Copy Window Color MACaptionAppearanceandobjc2-core-graphics - User preference for window color.
- MACaption
Appearance ⚠DidDisplay Captions MACaptionAppearance - Called by clients to inform accessibility products that captions have been displayed onscreen.
- MACaption
Appearance ⚠Execute Block ForProfileID MACaptionAppearanceandblock2 - 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.
- MACaption
Appearance ⚠GetBackground Opacity MACaptionAppearance - User preference for background opacity.
- MACaption
Appearance ⚠GetDisplay Type MACaptionAppearance - User preference representing what type of captions should be displayed
- MACaption
Appearance ⚠GetForeground Opacity MACaptionAppearance - User preference for foreground opacity.
- MACaption
Appearance ⚠GetRelative Character Size MACaptionAppearance - User preference for font scaling.
- MACaption
Appearance ⚠GetText Edge Style MACaptionAppearance - User preference for text edge style.
- MACaption
Appearance ⚠GetWindow Opacity MACaptionAppearance - User preference for window opacity.
- MACaption
Appearance ⚠GetWindow Rounded Corner Radius MACaptionAppearance - User preference for caption-window corner radius.
- MACaption
Appearance ⚠IsCustomized MACaptionAppearance - Provides a boolean indicating if the currently-active style has been customized by the user. This is useful for some clients who may need different fallback strategies for customized styles vs system-default styles.
- MACaption
Appearance ⚠SetActive ProfileID MACaptionAppearance - Sets the currently-selected caption drawing profileID system wide. Behavior is undefined if NULL or an invalid profileID is provided
- MACaption
Appearance ⚠SetDisplay Type MACaptionAppearance - User preference representing what type of captions should be displayed
- MADim
Flashing ⚠Lights Enabled MAVideoAccommodations - 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.
- MAImage
Captioning ⚠Copy Caption MAImageCaptioning - Returns an accessibility caption from an image’s metadata.
- MAImage
Captioning ⚠Copy Metadata TagPath MAImageCaptioning - Returns the metadata tagpath for this key. This tag path can be used to copy metadata directly using CGImageMetadataCopyTagWithPath from the CGImageMetadataRef, for example.
- MAImage
Captioning ⚠SetCaption MAImageCaptioning - Sets the accessibility caption into an image’s metadata.
Type Aliases§
- MAFlashing
Lights Processor Option Key MAFlashingLightsProcessingandobjc2-foundation - Apple’s documentation