ExtensionHostMonitor
public class ExtensionHostMonitor : BaseNotificationMonitor
An ExtensionHostMonitor instance monitors an extension context for
changes to the runtime state of the extension’s host app.
-
Encapsulates changes to the runtime state of the extension’s host app.
See moreDeclaration
Swift
public enum Event -
Specifies which events to monitor.
See moreDeclaration
Swift
public struct Options : OptionSet -
Initializes a new
ExtensionHostMonitor.Declaration
Parameters
contextThe extension context to monitor.
optionsThe options that specify which events to monitor. By default, all events are monitored.
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe handler to call when the runtime state of the extension’s host app changes.
-
The extension context being monitored.
Declaration
Swift
public let context: NSExtensionContext -
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
ExtensionHostMonitor Class Reference