ProtectedDataMonitor
public class ProtectedDataMonitor : BaseNotificationMonitor
A ProtectedDataMonitor instance monitors the app for changes to the
accessibility of protected files.
-
Encapsulates changes to the accessibility of protected files.
See moreDeclaration
Swift
public enum Event -
Specifies which events to monitor.
See moreDeclaration
Swift
public struct Options : OptionSet -
Initializes a new
ProtectedDataMonitor.Declaration
Parameters
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 protected files become available for your code to access, or shortly before protected files are locked down and become inaccessible.
-
A Boolean value indicating whether content is accessible for protected files.
Declaration
Swift
public var isContentAccessible: Bool { get } -
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
ProtectedDataMonitor Class Reference