DocumentStateMonitor
public class DocumentStateMonitor : BaseNotificationMonitor
A DocumentStateMonitor instance monitors a document for changes to
its state.
-
Encapsulates changes to the state of the document.
See moreDeclaration
Swift
public enum Event -
Initializes a new
DocumentStateMonitor.Declaration
Swift
public init(document: UIDocument, queue: OperationQueue = .main, handler: @escaping (Event) -> Void)Parameters
documentThe document to monitor.
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe handler to call when the state of the document changes.
-
The document being monitored.
Declaration
Swift
public let document: UIDocument -
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
DocumentStateMonitor Class Reference