SwiftclassWeatherAppSupport
DefaultCurrentLocationMonitor
class WeatherAppSupport.DefaultCurrentLocationMonitor
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 17
- deinit
deinit - field
let authObservers: os.OSAllocatedUnfairLock<[ObjectIdentifier : WeatherAppSupport.DefaultCurrentLocationMonitor.WeakObserverBox]> - field
let locationManager: WeatherCore.LocationManagerType - field
let locationMetadataManager: WeatherCore.LocationMetadataManagerType - field
let lockedAuthorizationStatus: os.OSAllocatedUnfairLock<CLAuthorizationStatus> - field
let lockedCurrentLocation: os.OSAllocatedUnfairLock<WeatherAppSupport.ResolvedCurrentLocation> - field
let observers: os.OSAllocatedUnfairLock<[ObjectIdentifier : WeatherAppSupport.DefaultCurrentLocationMonitor.WeakObserverBox]> - func
add<A where A: WeatherAppSupport.CurrentLocationMonitorObserver>(observer: A) -> () - func
add<A where A: WeatherAppSupport.LocationAuthorizationMonitorObserver>(observer: A) -> () - func
authorizationDidChange(_: WeatherCore.LocationManagerType, authorizationStatus: CLAuthorizationStatus) -> () - func
currentLocationDidUpdate(_: WeatherCore.LocationManagerType, location: WeatherCore.Location) -> () - func
currentLocationUpdateDidFail(_: WeatherCore.LocationManagerType, error: Error) -> () - func
remove<A where A: WeatherAppSupport.CurrentLocationMonitorObserver>(observer: A) -> () - func
remove<A where A: WeatherAppSupport.LocationAuthorizationMonitorObserver>(observer: A) -> () - var
final var authorizationStatus: CLAuthorizationStatus { get set } - var
final var currentLocation: WeatherAppSupport.ResolvedCurrentLocation { get } - var
final var updateTypes: [WeatherCore.LocationManagerUpdateType] { get }
Header
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 }