SwiftclassWorkoutCore
LocationManager
class WorkoutCore.LocationManager
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 19
- var
static var cacheableLocationAccuracy: Double { get } - var
static var shared: WorkoutCore.LocationManager { get } - deinit
deinit - field
var _observers: WorkoutCore.WeakCollection<WOCoreLocationManagerObserver> - field
var lastLocation: CLLocation? - field
var lastLocationReceivedDate: Foundation.Date? - field
var locationManager: CLLocationManager? - field
var locationRequests: [WorkoutCore.LocationRequest] - field
let queue: OS_dispatch_queue - field
var state: WorkoutCore.LocationManager.State - func
add(observer: WorkoutCore.LocationManagerObserver) -> () - func
cacheLastKnownLocation(CLLocation) -> Bool - func
isAuthorizedAsync((Bool) -> ()) -> () - func
locationManager(_: CLLocationManager, didUpdateLocations: [CLLocation]) -> () - func
locationManager(_: CLLocationManager, didFailWithError: Error) -> () - func
locationManagerDidChangeAuthorization(CLLocationManager) -> () - func
remove(observer: WorkoutCore.LocationManagerObserver) -> () - func
requestSingleLocationUpdate(timeout: Double, requestedAccuracy: Double, acceptableAccuracy: Double, completion: (CLLocation?) -> ()) -> () - var
var currentState: WorkoutCore.LocationManager.State { get }
Header
@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 }