SwiftstructJetCore
struct JetCore.Bag
Members 25
- func
static fetchBag(forProfile: JetCore.Bag.Profile, wantsAutomaticUpdates: Bool) -> JetCore.Promise<JetCore.Bag> - func
static fetchBag(forProfile: JetCore.Bag.Profile, as: AMSProcessInfo?, usingPolicy: AppleMediaServicesKitInternal.BagService.Policy) -> JetCore.Promise<JetCore.Bag> - func
static fetchBag(forProfile: JetCore.Bag.Profile, as: AMSProcessInfo?, wantsAutomaticUpdates: Bool, usingPolicy: AppleMediaServicesKitInternal.BagService.Policy) -> JetCore.Promise<JetCore.Bag> - func
static fetchBag(forProfile: JetCore.Bag.Profile, as: AMSProcessInfo?, wantsAutomaticUpdates: Bool) -> JetCore.Promise<JetCore.Bag> - func
static fetchBag(forProfile: JetCore.Bag.Profile, as: AMSProcessInfo?) -> JetCore.Promise<JetCore.Bag> - func
static fetchBag(forProfile: JetCore.Bag.Profile) -> JetCore.Promise<JetCore.Bag> - func
static fetchBag(using: JetCore.Bag.FetchConfiguration) async throws -> JetCore.Bag - func
static fetchObservableBag(using: JetCore.Bag.FetchConfiguration) async throws -> JetCore.ObservableBag - field
let amsBag: AMSBagProtocol+0x0 - func
snapshot() async throws -> JetCore.Bag - func
withLatestChanges() async throws -> JetCore.Bag - init
init(mockProfile: JetCore.Bag.Profile, stubs: JetCore.Bag.Stubs) -> JetCore.Bag - init
init(from: AppleMediaServicesKitInternal.Bag, profile: String, profileVersion: String, processInfo: AMSProcessInfo) -> JetCore.Bag - init
init(from: AMSBagProtocol) -> JetCore.Bag - subscript
subscript.getter : (dictionary: AMSBagKey) -> JetCore.Bag.Value<[AnyHashable : Any]> - subscript
subscript.getter : (int: AMSBagKey) -> JetCore.Bag.Value<Int> - subscript
subscript.getter : (url: AMSBagKey) -> JetCore.Bag.Value<Foundation.URL> - subscript
subscript.getter : (bool: AMSBagKey) -> JetCore.Bag.Value<Bool> - subscript
subscript.getter : (array: AMSBagKey) -> JetCore.Bag.Value<[Any]> - subscript
subscript.getter : (double: AMSBagKey) -> JetCore.Bag.Value<Double> - subscript
subscript.getter : (string: AMSBagKey) -> JetCore.Bag.Value<String> - var
var isExpired: Bool { get } - var
var profile: JetCore.Bag.Profile { get } - var
var snapshot: JetCore.Promise<JetCore.Bag> { get } - var
var withLatestChanges: JetCore.Promise<JetCore.Bag> { get }
Header
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 }