SwiftstructJetCore

struct JetCore.Bag

Members 25

  1. funcstatic fetchBag(forProfile: JetCore.Bag.Profile, wantsAutomaticUpdates: Bool) -> JetCore.Promise<JetCore.Bag>
  2. funcstatic fetchBag(forProfile: JetCore.Bag.Profile, as: AMSProcessInfo?, usingPolicy: AppleMediaServicesKitInternal.BagService.Policy) -> JetCore.Promise<JetCore.Bag>
  3. funcstatic fetchBag(forProfile: JetCore.Bag.Profile, as: AMSProcessInfo?, wantsAutomaticUpdates: Bool, usingPolicy: AppleMediaServicesKitInternal.BagService.Policy) -> JetCore.Promise<JetCore.Bag>
  4. funcstatic fetchBag(forProfile: JetCore.Bag.Profile, as: AMSProcessInfo?, wantsAutomaticUpdates: Bool) -> JetCore.Promise<JetCore.Bag>
  5. funcstatic fetchBag(forProfile: JetCore.Bag.Profile, as: AMSProcessInfo?) -> JetCore.Promise<JetCore.Bag>
  6. funcstatic fetchBag(forProfile: JetCore.Bag.Profile) -> JetCore.Promise<JetCore.Bag>
  7. funcstatic fetchBag(using: JetCore.Bag.FetchConfiguration) async throws -> JetCore.Bag
  8. funcstatic fetchObservableBag(using: JetCore.Bag.FetchConfiguration) async throws -> JetCore.ObservableBag
  9. fieldlet amsBag: AMSBagProtocol+0x0
  10. funcsnapshot() async throws -> JetCore.Bag
  11. funcwithLatestChanges() async throws -> JetCore.Bag
  12. initinit(mockProfile: JetCore.Bag.Profile, stubs: JetCore.Bag.Stubs) -> JetCore.Bag
  13. initinit(from: AppleMediaServicesKitInternal.Bag, profile: String, profileVersion: String, processInfo: AMSProcessInfo) -> JetCore.Bag
  14. initinit(from: AMSBagProtocol) -> JetCore.Bag
  15. subscriptsubscript.getter : (dictionary: AMSBagKey) -> JetCore.Bag.Value<[AnyHashable : Any]>
  16. subscriptsubscript.getter : (int: AMSBagKey) -> JetCore.Bag.Value<Int>
  17. subscriptsubscript.getter : (url: AMSBagKey) -> JetCore.Bag.Value<Foundation.URL>
  18. subscriptsubscript.getter : (bool: AMSBagKey) -> JetCore.Bag.Value<Bool>
  19. subscriptsubscript.getter : (array: AMSBagKey) -> JetCore.Bag.Value<[Any]>
  20. subscriptsubscript.getter : (double: AMSBagKey) -> JetCore.Bag.Value<Double>
  21. subscriptsubscript.getter : (string: AMSBagKey) -> JetCore.Bag.Value<String>
  22. varvar isExpired: Bool { get }
  23. varvar profile: JetCore.Bag.Profile { get }
  24. varvar snapshot: JetCore.Promise<JetCore.Bag> { get }
  25. varvar withLatestChanges: JetCore.Promise<JetCore.Bag> { get }
struct Bag {
    struct Value<A> {
        let base: JetCore.ValueBox<A>

        func currentOrNil() -> A?
        func currentOrNil() async -> A?
        func current(or: @autoclosure () -> A) -> A
        func current(or: @autoclosure () -> A) async -> A
        func promise() -> JetCore.Promise<A?>
    }
    struct FetchConfiguration {
        var profile: JetCore.Bag.Profile
        var process: __C.AMSProcessInfo?
        var wantsAutomaticUpdates: Swift.Bool
        var bagServicePolicy: AppleMediaServicesKitInternal.BagService.Policy

        init(profile: JetCore.Bag.Profile)

        func withBagServicePolicy(_: AppleMediaServicesKitInternal.BagService.Policy) -> JetCore.Bag.FetchConfiguration
        func withProcess(_: __C.AMSProcessInfo?) -> JetCore.Bag.FetchConfiguration
        func withProfile(_: JetCore.Bag.Profile) -> JetCore.Bag.FetchConfiguration
        func withWantsAutomaticUpdates(_: Swift.Bool) -> JetCore.Bag.FetchConfiguration
    }
    struct Stubs {
        var data: [Swift.String : Any]

        init()

        func withDouble(_: Swift.Double, forKey: __C.AMSBagKey) -> JetCore.Bag.Stubs
        func withString(_: Swift.String, forKey: __C.AMSBagKey) -> JetCore.Bag.Stubs
        func withInteger(_: Swift.Int, forKey: __C.AMSBagKey) -> JetCore.Bag.Stubs
        func withDictionary(_: [Swift.AnyHashable : Any], forKey: __C.AMSBagKey) -> JetCore.Bag.Stubs
        func withURL(_: Foundation.URL, forKey: __C.AMSBagKey) -> JetCore.Bag.Stubs
        func withBool(_: Swift.Bool, forKey: __C.AMSBagKey) -> JetCore.Bag.Stubs
        func withArray(_: [Any], forKey: __C.AMSBagKey) -> JetCore.Bag.Stubs
    }
    struct Profile {
        var name: Swift.String
        var version: Swift.String

        init(name: Swift.String, version: Swift.String)
    }
    let amsBag: any __C.AMSBagProtocol

    init(mockProfile: JetCore.Bag.Profile, stubs: JetCore.Bag.Stubs)
    init(from: any AppleMediaServicesKitInternal.Bag, profile: Swift.String, profileVersion: Swift.String, processInfo: __C.AMSProcessInfo)
    init(from: any __C.AMSBagProtocol)

    var isExpired: Swift.Bool {
        get
    }
    var profile: JetCore.Bag.Profile {
        get
    }
    var snapshot: JetCore.Promise<JetCore.Bag> {
        get
    }
    var withLatestChanges: JetCore.Promise<JetCore.Bag> {
        get
    }

    func withLatestChanges() async throws -> JetCore.Bag
    func snapshot() async throws -> JetCore.Bag

    subscript(dictionary: __C.AMSBagKey) -> JetCore.Bag.Value<[Swift.AnyHashable : Any]> {
        get
    }
    subscript(int: __C.AMSBagKey) -> JetCore.Bag.Value<Swift.Int> {
        get
    }
    subscript(url: __C.AMSBagKey) -> JetCore.Bag.Value<Foundation.URL> {
        get
    }
    subscript(bool: __C.AMSBagKey) -> JetCore.Bag.Value<Swift.Bool> {
        get
    }
    subscript(array: __C.AMSBagKey) -> JetCore.Bag.Value<[Any]> {
        get
    }
    subscript(double: __C.AMSBagKey) -> JetCore.Bag.Value<Swift.Double> {
        get
    }
    subscript(string: __C.AMSBagKey) -> JetCore.Bag.Value<Swift.String> {
        get
    }

    static func fetchObservableBag(using: JetCore.Bag.FetchConfiguration) async throws -> JetCore.ObservableBag
    static func fetchBag(forProfile: JetCore.Bag.Profile, wantsAutomaticUpdates: Swift.Bool) -> JetCore.Promise<JetCore.Bag>
    static func fetchBag(forProfile: JetCore.Bag.Profile, as: __C.AMSProcessInfo?, usingPolicy: AppleMediaServicesKitInternal.BagService.Policy) -> JetCore.Promise<JetCore.Bag>
    static func fetchBag(forProfile: JetCore.Bag.Profile, as: __C.AMSProcessInfo?, wantsAutomaticUpdates: Swift.Bool, usingPolicy: AppleMediaServicesKitInternal.BagService.Policy) -> JetCore.Promise<JetCore.Bag>
    static func fetchBag(forProfile: JetCore.Bag.Profile, as: __C.AMSProcessInfo?, wantsAutomaticUpdates: Swift.Bool) -> JetCore.Promise<JetCore.Bag>
    static func fetchBag(forProfile: JetCore.Bag.Profile, as: __C.AMSProcessInfo?) -> JetCore.Promise<JetCore.Bag>
    static func fetchBag(forProfile: JetCore.Bag.Profile) -> JetCore.Promise<JetCore.Bag>
    static func fetchBag(using: JetCore.Bag.FetchConfiguration) async throws -> JetCore.Bag
}