LocationProviderContract
public protocol LocationProviderContract : Identifiable, Sendable
Undocumented
-
An identifier for the location provider
Declaration
Swift
var id: String { get }
-
requestLocation()
AsynchronousRequests 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, asynchronousOptional method to start location updates, if applicable
Default Implementation
Declaration
Swift
func start() async throws
-
stop()
Default implementation, asynchronousOptional 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 }