Crate objc2_media_accessibility

Crate objc2_media_accessibility 

Source
Expand description

§Bindings to the MediaAccessibility framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

MACaptionAppearanceBehaviorMACaptionAppearance
MACaptionAppearanceBehavior is used to determine how a preference value should be used.
MACaptionAppearanceDisplayTypeMACaptionAppearance
MACaptionAppearanceDisplayType is used to specify the the type of captions that should be displayed
MACaptionAppearanceDomainMACaptionAppearance
MACaptionAppearanceDomain is used to specify which domain of preferences to access.
MACaptionAppearanceFontStyleMACaptionAppearance
MACaptionAppearanceFontStyle is used to specify a font style
MACaptionAppearanceTextEdgeStyleMACaptionAppearance
MACaptionAppearanceTextEdgeStyle is used to specify a text-edge style.
MAFlashingLightsProcessorMAFlashingLightsProcessing and objc2
Apple’s documentation
MAFlashingLightsProcessorResultMAFlashingLightsProcessing and objc2
Apple’s documentation
MAMusicHapticsManagerMAMusicHaptics and objc2
Apple’s documentation

Statics§

MAMediaCharacteristicDescribesMusicAndSoundForAccessibilityMACaptionAppearance
A media characteristic that indicates that a track or media selection option includes legible content in the language of its specified locale that:
MAMediaCharacteristicDescribesVideoForAccessibilityMAAudibleMedia
A media characteristic that indicates that a track or media selection option includes audible content that descries a video for accessibility.
MAMediaCharacteristicTranscribesSpokenDialogForAccessibilityMACaptionAppearance
A media characteristic that indicates that a track or media selection option includes legible content in the language of its specified locale that:
MAMusicHapticsManagerActiveStatusDidChangeNotificationMAMusicHaptics and objc2-foundation
Apple’s documentation
kMAAudibleMediaSettingsChangedNotificationMAAudibleMedia
CFNotification sent when any user-defined audible media settings are changed.
kMACaptionAppearanceSettingsChangedNotificationMACaptionAppearance
CFNotification sent when any user-defined captioning settings are changed.
kMADimFlashingLightsChangedNotificationMAVideoAccommodations
CFNotification sent to local notification center when mitigation for flashing or strobing lights settings are changed.

Functions§

MAAudibleMediaCopyPreferredCharacteristicsMAAudibleMedia
User preference for audible media characteristic
MACaptionAppearanceAddSelectedLanguageMACaptionAppearance
Adds a user’s selected caption language to stack of languages.
MACaptionAppearanceCopyActiveProfileIDMACaptionAppearance
Gets the currently-selected caption drawing profileID system wide.
MACaptionAppearanceCopyBackgroundColorMACaptionAppearance and objc2-core-graphics
User preference for background color.
MACaptionAppearanceCopyFontDescriptorForStyleMACaptionAppearance and objc2-core-text
User font preference for the specified style.
MACaptionAppearanceCopyForegroundColorMACaptionAppearance and objc2-core-graphics
User preference for foreground/text color.
MACaptionAppearanceCopyPreferredCaptioningMediaCharacteristicsMACaptionAppearance
User preference for captioning media characteristic
MACaptionAppearanceCopyProfileIDsMACaptionAppearance
Copies all system and user defined profiles, each represented by a CFString containing a non-human-readable ID
MACaptionAppearanceCopyProfileNameMACaptionAppearance
Copies the human-readable name of a profileID
MACaptionAppearanceCopySelectedLanguagesMACaptionAppearance
Copies the user’s preferred caption languages.
MACaptionAppearanceCopyWindowColorMACaptionAppearance and objc2-core-graphics
User preference for window color.
MACaptionAppearanceDidDisplayCaptionsMACaptionAppearance
Called by clients to inform accessibility products that captions have been displayed onscreen.
MACaptionAppearanceExecuteBlockForProfileIDMACaptionAppearance and block2
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.
MACaptionAppearanceGetBackgroundOpacityMACaptionAppearance
User preference for background opacity.
MACaptionAppearanceGetDisplayTypeMACaptionAppearance
User preference representing what type of captions should be displayed
MACaptionAppearanceGetForegroundOpacityMACaptionAppearance
User preference for foreground opacity.
MACaptionAppearanceGetRelativeCharacterSizeMACaptionAppearance
User preference for font scaling.
MACaptionAppearanceGetTextEdgeStyleMACaptionAppearance
User preference for text edge style.
MACaptionAppearanceGetWindowOpacityMACaptionAppearance
User preference for window opacity.
MACaptionAppearanceGetWindowRoundedCornerRadiusMACaptionAppearance
User preference for caption-window corner radius.
MACaptionAppearanceIsCustomizedMACaptionAppearance
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.
MACaptionAppearanceSetActiveProfileIDMACaptionAppearance
Sets the currently-selected caption drawing profileID system wide. Behavior is undefined if NULL or an invalid profileID is provided
MACaptionAppearanceSetDisplayTypeMACaptionAppearance
User preference representing what type of captions should be displayed
MADimFlashingLightsEnabledMAVideoAccommodations
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.
MAImageCaptioningCopyCaptionMAImageCaptioning
Returns an accessibility caption from an image’s metadata.
MAImageCaptioningCopyMetadataTagPathMAImageCaptioning
Returns the metadata tagpath for this key. This tag path can be used to copy metadata directly using CGImageMetadataCopyTagWithPath from the CGImageMetadataRef, for example.
MAImageCaptioningSetCaptionMAImageCaptioning
Sets the accessibility caption into an image’s metadata.

Type Aliases§

MAFlashingLightsProcessorOptionKeyMAFlashingLightsProcessing and objc2-foundation
Apple’s documentation