SwiftactorWeatherCore

actor WeatherCore.NotificationSubscriptionManager

Structure

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

Members 33

  1. deinitdeinit
  2. fieldvar $defaultActor: Builtin.DefaultActorStorage+0x10
  3. fieldlet hashSaltProviderProvider: WeatherCore.HashSaltProviderType+0x128
  4. fieldlet keyValueStoreNotificationSubscriptionManager: WeatherCore.KeyValueStoreNotificationSubscriptionManagerType+0xa0
  5. fieldlet legacyNotificationSubscriptionManager: WeatherCore.LegacyNotificationSubscriptionManagerType+0x78
  6. fieldlet localKeyValueStore: WeatherCore.KeyValueStoreType+0xc8
  7. fieldlet logger: OS_os_log+0xf8
  8. fieldvar migrationStatus: WeatherCore.NotificationSubscriptionMigrationStatus+0x100
  9. fieldlazy var migrationTask: Task<(), Never>?
  10. fieldvar observers: [WeatherCore.NotificationSubscriptionManagerObserver]+0x70
  11. fieldvar performMigration: Bool+0x150
  12. fieldvar shouldUseLegacyNotificationSubscriptionManager: Bool+0xf0
  13. funcaddObserver(WeatherCore.NotificationSubscriptionManagerObserver) async -> ()
  14. funcmigrateSubscriptionIfNeeded() async -> ()
  15. funcpredictedLocationsSubscription() -> WeatherCore.PredictedLocationsNotificationSubscription
  16. funcremoveObserver(WeatherCore.NotificationSubscriptionManagerObserver) async -> ()
  17. funcresubscribedAfterDeviceRestoreOnce() -> Bool
  18. funcsaltDidChange(WeatherCore.HashSaltProvider) -> ()
  19. funcsetResubscribedAfterDeviceRestoreOnce() -> ()
  20. funcsubscribe(to: WeatherCore.NotificationSubscription.Kind, for: WeatherCore.NotificationSubscription.Location) async throws -> ()
  21. funcsubscribeToPredictedLocations(for: WeatherCore.PredictedLocationsNotificationSubscription.Kind) -> ()
  22. funcsubscribed(_: WeatherCore.NotificationSubscriptionManagerType, locationIdentifier: WeatherCore.Location.Identifier) -> ()
  23. funcsubscription(with: String) async throws -> WeatherCore.NotificationSubscription?
  24. funcsubscriptions(of: WeatherCore.NotificationSubscription.Kind) async throws -> [WeatherCore.NotificationSubscription]
  25. funcunsubscribe(from: WeatherCore.NotificationSubscription.Kind, for: WeatherCore.Location.Identifier) async throws -> ()
  26. funcunsubscribe() async -> ()
  27. funcunsubscribeToPredictedLocations(for: WeatherCore.PredictedLocationsNotificationSubscription.Kind) -> ()
  28. funcunsubscribed(_: WeatherCore.NotificationSubscriptionManagerType, locationIdentifier: WeatherCore.Location.Identifier) -> ()
  29. funcupdateSubscription(for: WeatherCore.NotificationSubscription.Location) async throws -> ()
  30. initWeatherCore.NotificationSubscriptionManager.__allocating_init(legacyNotificationSubscriptionManager: WeatherCore.LegacyNotificationSubscriptionManagerType, keyValueStoreNotificationSubscriptionManager: WeatherCore.KeyValueStoreNotificationSubscriptionManagerType, localKeyValueStore: WeatherCore.KeyValueStoreType, secretKeyProvider: WeatherCore.HashSaltProviderType, performMigration: Bool) -> WeatherCore.NotificationSubscriptionManager
  31. varvar isSubscriptionAvailable: Bool { get }
  32. varvar unownedExecutor: UnownedSerialExecutor { get }
  33. varvar useSuggestedLocationsEnabled: Bool { get set }
actor NotificationSubscriptionManager {
    enum DefaultsKeys {
        static var predictedLocationsSevereNotifications: Swift.String {
            get
        }
        static var resubscribedAfterDeviceRestoreOnce: Swift.String {
            get
        }
        static var useSuggestedLocationsEnabled: Swift.String {
            get
        }
    }
    var observers: [any WeatherCore.NotificationSubscriptionManagerObserver]
    let legacyNotificationSubscriptionManager: any WeatherCore.LegacyNotificationSubscriptionManagerType
    let keyValueStoreNotificationSubscriptionManager: any WeatherCore.KeyValueStoreNotificationSubscriptionManagerType
    let localKeyValueStore: any WeatherCore.KeyValueStoreType
    var shouldUseLegacyNotificationSubscriptionManager: Swift.Bool
    let logger: __C.OS_os_log
    var migrationStatus: WeatherCore.NotificationSubscriptionMigrationStatus
    let hashSaltProviderProvider: any WeatherCore.HashSaltProviderType
    var performMigration: Swift.Bool
    lazy var migrationTask: Swift.Task<(), Swift.Never>?

    init(legacyNotificationSubscriptionManager: any WeatherCore.LegacyNotificationSubscriptionManagerType, keyValueStoreNotificationSubscriptionManager: any WeatherCore.KeyValueStoreNotificationSubscriptionManagerType, localKeyValueStore: any WeatherCore.KeyValueStoreType, secretKeyProvider: any WeatherCore.HashSaltProviderType, performMigration: Swift.Bool)

    var isSubscriptionAvailable: Swift.Bool {
        get
    }
    var unownedExecutor: Swift.UnownedSerialExecutor {
        get
    }
    var useSuggestedLocationsEnabled: Swift.Bool {
        get
        set
    }

    func predictedLocationsSubscription() -> WeatherCore.PredictedLocationsNotificationSubscription
    func updateSubscription(for: WeatherCore.NotificationSubscription.Location) async throws
    func migrateSubscriptionIfNeeded() async
    func subscribed(_: any WeatherCore.NotificationSubscriptionManagerType, locationIdentifier: WeatherCore.Location.Identifier)
    func addObserver(_: any WeatherCore.NotificationSubscriptionManagerObserver) async
    func unsubscribe(from: WeatherCore.NotificationSubscription.Kind, for: WeatherCore.Location.Identifier) async throws
    func unsubscribe() async
    func subscription(with: Swift.String) async throws -> WeatherCore.NotificationSubscription?
    func unsubscribed(_: any WeatherCore.NotificationSubscriptionManagerType, locationIdentifier: WeatherCore.Location.Identifier)
    func saltDidChange(_: WeatherCore.HashSaltProvider)
    func subscriptions(of: WeatherCore.NotificationSubscription.Kind) async throws -> [WeatherCore.NotificationSubscription]
    func removeObserver(_: any WeatherCore.NotificationSubscriptionManagerObserver) async
    func subscribeToPredictedLocations(for: WeatherCore.PredictedLocationsNotificationSubscription.Kind)
    func unsubscribeToPredictedLocations(for: WeatherCore.PredictedLocationsNotificationSubscription.Kind)
    func resubscribedAfterDeviceRestoreOnce() -> Swift.Bool
    func setResubscribedAfterDeviceRestoreOnce()
    func subscribe(to: WeatherCore.NotificationSubscription.Kind, for: WeatherCore.NotificationSubscription.Location) async throws

    deinit
}