BackgroundRefreshMonitor
public class BackgroundRefreshMonitor : BaseNotificationMonitor
A BackgroundRefreshMonitor instance monitors the app for changes to
its status for downloading content in the background.
-
Encapsulates changes to the app’s status for downloading content in the background.
See moreDeclaration
Swift
public enum Event -
Initializes a new
BackgroundRefreshMonitor.Declaration
Swift
public init(queue: OperationQueue = .main, handler: @escaping (Event) -> Void)Parameters
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe handler to call when the app’s status for downloading content in the background changes.
-
Whether the app can be launched into the background to handle background behaviors.
Declaration
Swift
public var status: UIBackgroundRefreshStatus { get } -
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
BackgroundRefreshMonitor Class Reference