LocationProviderContract

public protocol LocationProviderContract : Identifiable, Sendable

Undocumented

  • id

    An identifier for the location provider

    Declaration

    Swift

    var id: String { get }
  • requestLocation() Asynchronous

    Requests a location asynchronously

    Declaration

    Swift

    func requestLocation() async throws -> SendableCLLocation

    Return Value

    A CLLocation if successful, or throws an error if the request fails

  • start() Default implementation, asynchronous

    Optional method to start location updates, if applicable

    Default Implementation

    Declaration

    Swift

    func start() async throws
  • stop() Default implementation, asynchronous

    Optional method to stop location updates, if applicable

    Default Implementation

    Declaration

    Swift

    func stop() async throws
  • Number of seconds to check for new location when startUpdatingLocation

    Declaration

    Swift

    var poolInterval: TimeInterval { get }