AXCustomContent.Importance
Category: Enumeration
Platforms: iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+, visionOS 1.0+, watchOS 7.0+
Overview
Objects that control the timing of content output.
Declaration
enum Importance
Details
Topics
- Creating a content importance enumeration
- init?(rawValue: UInt)
- Setting content importance
- case
default - case high
Relationships
- BitwiseCopyable
- Equatable
- Hashable
- RawRepresentable
- Sendable
- SendableMetatype
See Also
- Defining custom content
- var label: String
- var attributedLabel: NSAttributedString
- var value: String
- var attributedValue: NSAttributedString
-
var importance: AXCustomContent.Importance
-
Accessibility
- AXCustomContent
- AXCustomContent.Importance
AXCustom Content .Importance
Topics (Grouped)
Creating a content importance enumeration
- initrawValue:UInt) — ?(
Setting content importance
default— case; Output the content to the user on demand.- high — case; Output the content to the user immediately.
Conforms To
Defining custom content
- label:String — var; A localized string that identifies the label for this content.
- attributedLabel:NSAttributedString — var; A localized attributed string that identifies the label for this content.
- value:String — var; A localized string that provides a value for the label.
- attributedValue:NSAttributedString — var; A localized attributed string that provides a value for the label.
- importance:AXCustomContent.Importance — var; An object that determines when to output custom accessibility content.
Code Examples
enum Importance
Source: https://developer.apple.com/documentation/accessibility/axcustomcontent/importance-swift.enum