AccessibilityElementMonitor
public class AccessibilityElementMonitor : BaseNotificationMonitor
An AccessibilityElementMonitor
instance monitors the system for
changes to element focus by an assistive technology.
-
Encapsulates changes to element focus by an assistive technology.
See moreDeclaration
Swift
public enum Event
-
Encapsulates information associated with an element focus change by an assistive technology.
See moreDeclaration
Swift
public struct Info
-
Initializes a new
AccessibilityElementMonitor
.Declaration
Swift
public init(queue: OperationQueue = .main, handler: @escaping (Event) -> Void)
Parameters
queue
The operation queue on which the handler executes. By default, the main operation queue is used.
handler
The handler to call when an assistive technology changes element focus.
-
Declaration
Swift
override public func addNotificationObservers()