SwiftclassWeatherAppSupport

class WeatherAppSupport.DefaultCurrentLocationMonitor

Structure

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

Members 17

  1. deinitdeinit
  2. fieldlet authObservers: os.OSAllocatedUnfairLock<[ObjectIdentifier : WeatherAppSupport.DefaultCurrentLocationMonitor.WeakObserverBox]>
  3. fieldlet locationManager: WeatherCore.LocationManagerType
  4. fieldlet locationMetadataManager: WeatherCore.LocationMetadataManagerType
  5. fieldlet lockedAuthorizationStatus: os.OSAllocatedUnfairLock<CLAuthorizationStatus>
  6. fieldlet lockedCurrentLocation: os.OSAllocatedUnfairLock<WeatherAppSupport.ResolvedCurrentLocation>
  7. fieldlet observers: os.OSAllocatedUnfairLock<[ObjectIdentifier : WeatherAppSupport.DefaultCurrentLocationMonitor.WeakObserverBox]>
  8. funcadd<A where A: WeatherAppSupport.CurrentLocationMonitorObserver>(observer: A) -> ()
  9. funcadd<A where A: WeatherAppSupport.LocationAuthorizationMonitorObserver>(observer: A) -> ()
  10. funcauthorizationDidChange(_: WeatherCore.LocationManagerType, authorizationStatus: CLAuthorizationStatus) -> ()
  11. funccurrentLocationDidUpdate(_: WeatherCore.LocationManagerType, location: WeatherCore.Location) -> ()
  12. funccurrentLocationUpdateDidFail(_: WeatherCore.LocationManagerType, error: Error) -> ()
  13. funcremove<A where A: WeatherAppSupport.CurrentLocationMonitorObserver>(observer: A) -> ()
  14. funcremove<A where A: WeatherAppSupport.LocationAuthorizationMonitorObserver>(observer: A) -> ()
  15. varfinal var authorizationStatus: CLAuthorizationStatus { get set }
  16. varfinal var currentLocation: WeatherAppSupport.ResolvedCurrentLocation { get }
  17. varfinal var updateTypes: [WeatherCore.LocationManagerUpdateType] { get }
class DefaultCurrentLocationMonitor {
    class WeakObserverBox {
        weak var observer: Swift.AnyObject?
    }
    let locationManager: any WeatherCore.LocationManagerType
    let locationMetadataManager: any WeatherCore.LocationMetadataManagerType
    let lockedCurrentLocation: os.OSAllocatedUnfairLock<WeatherAppSupport.ResolvedCurrentLocation>
    let observers: os.OSAllocatedUnfairLock<[Swift.ObjectIdentifier : WeatherAppSupport.DefaultCurrentLocationMonitor.WeakObserverBox]>
    let lockedAuthorizationStatus: os.OSAllocatedUnfairLock<__C.CLAuthorizationStatus>
    let authObservers: os.OSAllocatedUnfairLock<[Swift.ObjectIdentifier : WeatherAppSupport.DefaultCurrentLocationMonitor.WeakObserverBox]>

    final var authorizationStatus: __C.CLAuthorizationStatus {
        get
        set
    }
    final var currentLocation: WeatherAppSupport.ResolvedCurrentLocation {
        get
    }
    final var updateTypes: [WeatherCore.LocationManagerUpdateType] {
        get
    }

    final func currentLocationUpdateDidFail(_: any WeatherCore.LocationManagerType, error: any Swift.Error)
    final func currentLocationDidUpdate(_: any WeatherCore.LocationManagerType, location: WeatherCore.Location)
    final func authorizationDidChange(_: any WeatherCore.LocationManagerType, authorizationStatus: __C.CLAuthorizationStatus)
    final func add<A>(observer: A) where A: WeatherAppSupport.CurrentLocationMonitorObserver
    final func add<A>(observer: A) where A: WeatherAppSupport.LocationAuthorizationMonitorObserver
    final func remove<A>(observer: A) where A: WeatherAppSupport.CurrentLocationMonitorObserver
    final func remove<A>(observer: A) where A: WeatherAppSupport.LocationAuthorizationMonitorObserver

    deinit
}