SignificantLocationMonitor

public class SignificantLocationMonitor : BaseMonitor

A SignificantLocationMonitor instance monitors the device for significant changes to its current location.

Note

An authorization status of authorizedAlways is required.
  • Encapsulates changes to the device’s current location.

    See more

    Declaration

    Swift

    public enum Event
  • Encapsulates information associated with a significant location monitor event.

    See more

    Declaration

    Swift

    public enum Info
  • Initializes a new SignificantLocationMonitor.

    Declaration

    Swift

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

    Parameters

    queue

    The operation queue on which the handler executes.

    handler

    The handler to call when the current location of the device changes significantly.

  • A Boolean value indicating whether the significant-change location service is available.

    Declaration

    Swift

    public var isAvailable: Bool { get }
  • Declaration

    Swift

    override public func cleanupMonitor()
  • Declaration

    Swift

    override public func configureMonitor()