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 more

    Declaration

    Swift

    public enum Event
  • Initializes a new DocumentStateMonitor.

    Declaration

    Swift

    public init(document: UIDocument,
                queue: OperationQueue = .main,
                handler: @escaping (Event) -> Void)

    Parameters

    document

    The document to monitor.

    queue

    The operation queue on which the handler executes. By default, the main operation queue is used.

    handler

    The 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()