SwiftclassWorkoutCore

class WorkoutCore.LocationManager

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 19

  1. varstatic var cacheableLocationAccuracy: Double { get }
  2. varstatic var shared: WorkoutCore.LocationManager { get }
  3. deinitdeinit
  4. fieldvar _observers: WorkoutCore.WeakCollection<WOCoreLocationManagerObserver>
  5. fieldvar lastLocation: CLLocation?
  6. fieldvar lastLocationReceivedDate: Foundation.Date?
  7. fieldvar locationManager: CLLocationManager?
  8. fieldvar locationRequests: [WorkoutCore.LocationRequest]
  9. fieldlet queue: OS_dispatch_queue
  10. fieldvar state: WorkoutCore.LocationManager.State
  11. funcadd(observer: WorkoutCore.LocationManagerObserver) -> ()
  12. funccacheLastKnownLocation(CLLocation) -> Bool
  13. funcisAuthorizedAsync((Bool) -> ()) -> ()
  14. funclocationManager(_: CLLocationManager, didUpdateLocations: [CLLocation]) -> ()
  15. funclocationManager(_: CLLocationManager, didFailWithError: Error) -> ()
  16. funclocationManagerDidChangeAuthorization(CLLocationManager) -> ()
  17. funcremove(observer: WorkoutCore.LocationManagerObserver) -> ()
  18. funcrequestSingleLocationUpdate(timeout: Double, requestedAccuracy: Double, acceptableAccuracy: Double, completion: (CLLocation?) -> ()) -> ()
  19. varvar currentState: WorkoutCore.LocationManager.State { get }
@objc(WOCoreLocationManager)
class LocationManager: __C.NSObject, __C.CLLocationManagerDelegate {
    enum State {}
    var lastLocation: __C.CLLocation?
    var lastLocationReceivedDate: Foundation.Date?
    var locationManager: __C.CLLocationManager?
    var state: WorkoutCore.LocationManager.State
    var locationRequests: [WorkoutCore.LocationRequest]
    let queue: __C.OS_dispatch_queue
    // synthesized from the backing storage `_observers`; the property's own accessors are stripped
    @WorkoutCore.WeakCollection<any __C.WOCoreLocationManagerObserver> var observers: [any __C.WOCoreLocationManagerObserver] {
        get
        set
    }

    var currentState: WorkoutCore.LocationManager.State {
        get
    }
    func add(observer: any WorkoutCore.LocationManagerObserver)
    func remove(observer: any WorkoutCore.LocationManagerObserver)
    func requestSingleLocationUpdate(timeout: Swift.Double, requestedAccuracy: Swift.Double, acceptableAccuracy: Swift.Double, completion: @escaping (_: __C.CLLocation?) -> ())
    func isAuthorizedAsync(_: @escaping (_: Swift.Bool) -> ())
    func cacheLastKnownLocation(_: __C.CLLocation) -> Swift.Bool
    func locationManagerDidChangeAuthorization(_: __C.CLLocationManager)
    func locationManager(_: __C.CLLocationManager, didUpdateLocations: [__C.CLLocation])
    func locationManager(_: __C.CLLocationManager, didFailWithError: any Swift.Error)

    static var cacheableLocationAccuracy: Swift.Double {
        get
    }
    static var shared: WorkoutCore.LocationManager {
        get
    }

    deinit
}