SwiftactorStoreKit

actor StoreKit.StoreProductManager

Structure

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

inherits{}

Members 21

  1. varstatic var shared: StoreKit.StoreProductManager { get }
  2. deinitdeinit
  3. fieldvar $defaultActor: Builtin.DefaultActorStorage+0x10
  4. fieldvar loadingIDs: Set<StoreKit.StoreProductManager.Identifier>+0x90
  5. fieldvar loadingTasks: [Foundation.UUID : Task<(), Never>]
  6. fieldlet log: StoreKit.SKLogger
  7. fieldvar lowMemoryTask: Task<(), Never>?
  8. fieldvar products: [StoreKit.StoreProductManager.ProductID : StoreKit.StoreProductManager.CachedProduct]+0x70
  9. fieldvar purgableIDs: Set<StoreKit.StoreProductManager.Identifier>+0x80
  10. fieldvar stagingIDs: Set<StoreKit.StoreProductManager.Identifier>+0x88
  11. fieldvar storefrontTask: Task<(), Never>?
  12. fieldvar subscriptionGroups: [StoreKit.StoreProductManager.SubscriptionGroupID : StoreKit.StoreProductManager.CachedGroup]+0x78
  13. fieldvar throttleTask: Task<(), Never>?
  14. funccachedProduct(for: String) -> StoreKit.Product?
  15. funcobserver(subscriptionGroupID: String, origin: StoreKit.StoreKitViewOrigin) async -> StoreKit.StoreProductManager.SubscriptionGroupObserver
  16. funcobserver(for: String, origin: StoreKit.StoreKitViewOrigin) -> StoreKit.StoreProductManager.SingleObserver
  17. funcobserver<A where A: Collection, A: Sendable, A.Element == String>(for: A, origin: StoreKit.StoreKitViewOrigin) async -> StoreKit.StoreProductManager.CollectionObserver
  18. funcremoveObserver(subscriptionGroupID: String, origin: StoreKit.StoreKitViewOrigin) -> ()
  19. funcremoveObserver(for: String, origin: StoreKit.StoreKitViewOrigin) -> ()
  20. funcremoveObserver<A where A: Collection, A.Element == String>(for: A, origin: StoreKit.StoreKitViewOrigin) -> ()
  21. varvar unownedExecutor: UnownedSerialExecutor { get }
actor StoreProductManager {
    class SingleObserver {
        enum Storage {
            case failed(any Swift.Error)
            case success(StoreKit.Product)
            case loading
            case unavailable
        }
        @Combine.Published final var state: StoreKit.StoreProductManager.SingleObserver.Storage {
            get
        }

        deinit
    }
    class CollectionObserver {
        enum Storage {
            case loading(Swift.String)
            case unavailable(Swift.String)
            case available(StoreKit.Product)

            var id: Swift.String {
                get
            }
        }
        @Combine.Published final var error: (any Swift.Error)? {
            get
        }
        @Combine.Published final var storage: [StoreKit.StoreProductManager.CollectionObserver.Storage] {
            get
        }

        deinit
    }
    class SubscriptionGroupObserver {
        enum Storage {
            case failed(any Swift.Error)
            case success([StoreKit.Product])
            case loading
        }
        @Combine.Published final var state: StoreKit.StoreProductManager.SubscriptionGroupObserver.Storage {
            get
        }

        deinit
    }
    struct SubscriptionGroupID {
        var rawValue: Swift.String
    }
    struct CachedGroup {
        var productIDs: Swift.Set<StoreKit.StoreProductManager.ProductID>?
        weak var observer: StoreKit.StoreProductManager.SubscriptionGroupObserver?
    }
    enum Identifier {
        case product(StoreKit.StoreProductManager.ProductID)
        case subscriptionGroup(StoreKit.StoreProductManager.SubscriptionGroupID)
    }
    struct ProductID {
        var rawValue: Swift.String
    }
    struct CachedProduct {
        var storage: (storage: StoreKit.Product, expiration: Foundation.Date)?
        weak var singleObserver: StoreKit.StoreProductManager.SingleObserver?
        var collectionObservers: [StoreKit.WeakBox<StoreKit.StoreProductManager.CollectionObserver>]
    }
    var products: [StoreKit.StoreProductManager.ProductID : StoreKit.StoreProductManager.CachedProduct]
    var subscriptionGroups: [StoreKit.StoreProductManager.SubscriptionGroupID : StoreKit.StoreProductManager.CachedGroup]
    var purgableIDs: Swift.Set<StoreKit.StoreProductManager.Identifier>
    var stagingIDs: Swift.Set<StoreKit.StoreProductManager.Identifier>
    var loadingIDs: Swift.Set<StoreKit.StoreProductManager.Identifier>
    var storefrontTask: Swift.Task<(), Swift.Never>?
    var lowMemoryTask: Swift.Task<(), Swift.Never>?
    var throttleTask: Swift.Task<(), Swift.Never>?
    var loadingTasks: [Foundation.UUID : Swift.Task<(), Swift.Never>]
    let log: StoreKit.SKLogger

    var unownedExecutor: Swift.UnownedSerialExecutor {
        get
    }

    func cachedProduct(for: Swift.String) -> StoreKit.Product?
    func removeObserver(subscriptionGroupID: Swift.String, origin: StoreKit.StoreKitViewOrigin)
    func removeObserver(for: Swift.String, origin: StoreKit.StoreKitViewOrigin)
    func removeObserver<A>(for: A, origin: StoreKit.StoreKitViewOrigin) where A: Swift.Collection, A.Element == Swift.String
    func observer(subscriptionGroupID: Swift.String, origin: StoreKit.StoreKitViewOrigin) async -> StoreKit.StoreProductManager.SubscriptionGroupObserver
    func observer(for: Swift.String, origin: StoreKit.StoreKitViewOrigin) -> StoreKit.StoreProductManager.SingleObserver
    func observer<A>(for: A, origin: StoreKit.StoreKitViewOrigin) async -> StoreKit.StoreProductManager.CollectionObserver where A: Swift.Collection, A: Swift.Sendable, A.Element == Swift.String

    static var shared: StoreKit.StoreProductManager {
        get
    }

    deinit
}