MetadataQueryMonitor
public class MetadataQueryMonitor : BaseNotificationMonitor
A MetadataQueryMonitor instance monitors a metadata query for changes to
its results.
-
Encapsulates changes to the results of the metadata query.
See moreDeclaration
Swift
public enum Event -
Encapsulates information associated with a metadata query monitor event.
See moreDeclaration
Swift
public struct Info -
Specifies which events to monitor.
See moreDeclaration
Swift
public struct Options : OptionSet -
Initializes a new
MetadataQueryMonitor.Declaration
Parameters
queryThe metadata query 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 results of the metadata query change.
-
The metadata query being monitored.
Declaration
Swift
public let query: NSMetadataQuery -
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
MetadataQueryMonitor Class Reference