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 more

    Declaration

    Swift

    public enum Event
  • Initializes a new BackgroundRefreshMonitor.

    Declaration

    Swift

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

    Parameters

    queue

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

    handler

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