SwiftclassWeatherCore

class WeatherCore.LocationManager

Structure

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

Members 31

  1. deinitdeinit
  2. fieldvar _authorizationSignpostID: TeaFoundation.Atomic<os.OSSignpostID?>
  3. fieldvar _authorizationState: TeaFoundation.Atomic<CLAuthorizationStatus>
  4. fieldvar _currentLocationStatus: TeaFoundation.Atomic<WeatherCore.LocationManager.CurrentLocationStatus>
  5. fieldvar _firstRevGeoComplete: TeaFoundation.Atomic<Bool>
  6. fieldvar _locationUpdateSignpostID: TeaFoundation.Atomic<os.OSSignpostID?>
  7. fieldlet geocodeManager: TeaFoundation.ReferenceCountedLazy<WeatherCore.GeocodeManagerType>?
  8. fieldvar hasReducedLocationUpdates: Bool
  9. fieldvar isUpdatingLocation: Bool
  10. fieldlet locationActivityQueue: OS_dispatch_queue
  11. fieldlet locationCacheManager: WeatherCore.CurrentLocationCacheManagerType
  12. fieldvar locationManager: CLLocationManager?
  13. fieldlet lock: TeaFoundation.UnfairLock
  14. fieldlet logger: OS_os_log
  15. fieldlet notifyQueue: OS_dispatch_queue
  16. fieldvar observers: [WeatherCore.LocationManagerObserverProxy]
  17. funcaddObserver(WeatherCore.LocationManagerObserver) -> ()
  18. funclocationManager(_: CLLocationManager, didFailWithError: Error) -> ()
  19. funclocationManager(_: CLLocationManager, didUpdateLocations: [CLLocation]) -> ()
  20. funclocationManagerDidChangeAuthorization(CLLocationManager) -> ()
  21. funcremoveObserver(WeatherCore.LocationManagerObserver) -> ()
  22. funcrequestAlwaysAuthorization() -> ()
  23. funcrequestAuthorization() -> ()
  24. initWeatherCore.LocationManager.__allocating_init(geocodeManager: TeaFoundation.ReferenceCountedLazy<WeatherCore.GeocodeManagerType>?, locationCacheManager: WeatherCore.CurrentLocationCacheManagerType) -> WeatherCore.LocationManager
  25. initWeatherCore.LocationManager.__allocating_init(geocodeManager: WeatherCore.GeocodeManagerType, locationCacheManager: WeatherCore.CurrentLocationCacheManagerType) -> WeatherCore.LocationManager
  26. initWeatherCore.LocationManager.__allocating_init() -> WeatherCore.LocationManager
  27. varfinal var authorizationState: CLAuthorizationStatus { get set }
  28. varfinal var currentCLLocation: CLLocation? { get }
  29. varfinal var currentLocation: WeatherCore.Location? { get }
  30. varfinal var limitsPrecision: Bool { get }
  31. varfinal var supportsCurrentLocation: Bool { get }
class LocationManager: __C.NSObject, __C.CLLocationManagerDelegate {
    enum CurrentLocationResolution {
        case raw(__C.CLLocation)
        case resolved(WeatherCore.Location, __C.CLLocation)
    }
    enum CurrentLocationStatus {
        case fromCache(WeatherCore.LocationManager.CurrentLocationResolution)
        case fromCurrentSession(WeatherCore.LocationManager.CurrentLocationResolution)
        case notDetermined
    }
    enum UpdateError {
        case missingCurrentLocation
        case shiftingError
    }
    var locationManager: __C.CLLocationManager?
    var isUpdatingLocation: Swift.Bool
    var hasReducedLocationUpdates: Swift.Bool
    // synthesized from the backing storage `_firstRevGeoComplete`; the property's own accessors are stripped
    @TeaFoundation.Atomic var firstRevGeoComplete: Swift.Bool {
        get
        set
    }
    let logger: __C.OS_os_log
    // synthesized from the backing storage `_locationUpdateSignpostID`; the property's own accessors are stripped
    @TeaFoundation.Atomic var locationUpdateSignpostID: os.OSSignpostID? {
        get
        set
    }
    // synthesized from the backing storage `_authorizationSignpostID`; the property's own accessors are stripped
    @TeaFoundation.Atomic var authorizationSignpostID: os.OSSignpostID? {
        get
        set
    }
    var observers: [WeatherCore.LocationManagerObserverProxy]
    let lock: TeaFoundation.UnfairLock
    let notifyQueue: __C.OS_dispatch_queue
    let locationActivityQueue: __C.OS_dispatch_queue
    let geocodeManager: TeaFoundation.ReferenceCountedLazy<any WeatherCore.GeocodeManagerType>?
    let locationCacheManager: any WeatherCore.CurrentLocationCacheManagerType
    // synthesized from the backing storage `_currentLocationStatus`; the property's own accessors are stripped
    @TeaFoundation.Atomic var currentLocationStatus: WeatherCore.LocationManager.CurrentLocationStatus {
        get
        set
    }

    init(geocodeManager: TeaFoundation.ReferenceCountedLazy<any WeatherCore.GeocodeManagerType>?, locationCacheManager: any WeatherCore.CurrentLocationCacheManagerType)

    init(geocodeManager: any WeatherCore.GeocodeManagerType, locationCacheManager: any WeatherCore.CurrentLocationCacheManagerType)
    @objc override init()

    @TeaFoundation.Atomic final var authorizationState: __C.CLAuthorizationStatus {
        get
        set
    }
    final var currentCLLocation: __C.CLLocation? {
        get
    }
    final var currentLocation: WeatherCore.Location? {
        get
    }
    final var limitsPrecision: Swift.Bool {
        get
    }
    final var supportsCurrentLocation: Swift.Bool {
        get
    }

    @objc func locationManager(_: __C.CLLocationManager, didFailWithError: any Swift.Error)
    @objc func locationManager(_: __C.CLLocationManager, didUpdateLocations: [__C.CLLocation])
    @objc func locationManagerDidChangeAuthorization(_: __C.CLLocationManager)
    final func addObserver(_: any WeatherCore.LocationManagerObserver)
    final func removeObserver(_: any WeatherCore.LocationManagerObserver)
    final func requestAuthorization()
    final func requestAlwaysAuthorization()

    deinit
}