Returns the preferred opacity for the text highlight.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Media
Accessibility
Declaration
CGFloat MACaptionAppearanceGetBackgroundOpacity(MACaption Appearance Domain domain, MACaption Appearance Behavior *behavior);
Parameters
domain
The domain to retrieve the preference value from. See
MACaption
. PassAppearance Domain k
unless the system defaults are needed for comparison.MACaption Appearance Domain User behavior
A pointer to memory. On return, this memory holds the caption appearance behavior for this preference setting. For possible values see
MACaption
. PassAppearance Behavior NULL
when you do not need the behavior setting.
Return Value
A float value, ranging from 0
to 1
, representing the opacity of the color behind the text and above the window color.