SwiftprotocolAppState

protocol AppState.AppStateController

Members 30

  1. funcmethod descriptor for canTransitionState(forApp: AppState.App, to: AppState.State) -> Bool
  2. funcmethod descriptor for clearRemoteInstalled(forApp: AppState.App, refreshState: Bool) -> Bool
  3. funcmethod descriptor for clearWaiting(forApp: AppState.App, refreshState: Bool) -> Bool
  4. funcclearWaiting(forApp: AppState.App) -> Bool
  5. funcmethod descriptor for isLocal(app: AppState.App) -> Bool
  6. funcmethod descriptor for isRedownloadable(app: AppState.App, includingPreorders: Bool) -> Bool
  7. funcmethod descriptor for isUpdateEnabled(app: AppState.App) -> Bool
  8. funcmethod descriptor for loadDataSources() async throws -> ()
  9. funcmethod descriptor for postsChanges(forApp: AppState.App) -> Bool
  10. funcmethod descriptor for preloadState(forApps: Set<AppState.App>) -> ()
  11. funcmethod descriptor for prospectiveState(forApp: AppState.App, applying: AppState.AppOffer) -> AppState.State
  12. funcprospectiveState(forApp: AppState.App) -> AppState.State
  13. funcmethod descriptor for purchaseHistoryIncludes(app: AppState.App) -> Bool
  14. funcmethod descriptor for redownloadBuyParams(forApp: AppState.App) -> String?
  15. funcmethod descriptor for refreshOverridingCompatibility(_: Bool, for: AppState.AdamID) -> ()
  16. funcrefreshOverridingCompatibility(_: Bool, for: AppState.AdamID) -> ()
  17. funcmethod descriptor for refreshUpdateRegistry(forApp: AppState.App, with: AppState.AppOffer) async -> ()
  18. funcmethod descriptor for reloadAllStates(synchronizing: Bool) async throws -> ()
  19. funcmethod descriptor for reloadState(forApps: Set<AppState.App>, synchronizing: Bool) async throws -> ()
  20. funcmethod descriptor for setPostsChanges(_: Bool, forApp: AppState.App) -> ()
  21. funcmethod descriptor for setRemoteInstalled(forApp: AppState.App) -> Bool
  22. funcmethod descriptor for setRemoteInstalled(forApp: AppState.App) -> ()
  23. funcmethod descriptor for setWaiting(forApp: AppState.App, installationType: AppState.AppInstallationType) -> Bool
  24. funcmethod descriptor for state(forApp: AppState.App, initialState: AppState.State, applying: AppState.AppOffer) -> AppState.State
  25. funcstate(forApp: AppState.App, applying: AppState.AppOffer) -> AppState.State
  26. funcstate(forApp: AppState.App) -> AppState.State
  27. funcmethod descriptor for transitionState(forApp: AppState.App, to: AppState.State) -> Bool
  28. varvar isLoaded: Bool { get }
  29. varvar onLoad: JetEngine.AsyncEvent<()> { get }
  30. varvar onStateChange: JetEngine.AsyncEvent<(app: AppState.App, newState: AppState.State)> { get }
protocol AppStateController {
    var isLoaded: Swift.Bool {
        get
    }
    var onLoad: JetEngine.AsyncEvent<()> {
        get
    }
    var onStateChange: JetEngine.AsyncEvent<(app: AppState.App, newState: AppState.State)> {
        get
    }

    func loadDataSources() async throws
    func reloadAllStates(synchronizing: Swift.Bool) async throws
    func reloadState(forApps: Swift.Set<AppState.App>, synchronizing: Swift.Bool) async throws
    func preloadState(forApps: Swift.Set<AppState.App>)
    func state(forApp: AppState.App, initialState: AppState.State, applying: AppState.AppOffer) -> AppState.State
    func prospectiveState(forApp: AppState.App, applying: AppState.AppOffer) -> AppState.State
    func canTransitionState(forApp: AppState.App, to: AppState.State) -> Swift.Bool
    func transitionState(forApp: AppState.App, to: AppState.State) -> Swift.Bool
    func postsChanges(forApp: AppState.App) -> Swift.Bool
    func setPostsChanges(_: Swift.Bool, forApp: AppState.App)
    func setWaiting(forApp: AppState.App, installationType: AppState.AppInstallationType) -> Swift.Bool
    func clearWaiting(forApp: AppState.App, refreshState: Swift.Bool) -> Swift.Bool
    func setRemoteInstalled(forApp: AppState.App) -> Swift.Bool
    func setRemoteInstalled(forApp: AppState.App)
    func clearRemoteInstalled(forApp: AppState.App, refreshState: Swift.Bool) -> Swift.Bool
    func refreshUpdateRegistry(forApp: AppState.App, with: AppState.AppOffer) async
    func isLocal(app: AppState.App) -> Swift.Bool
    func isRedownloadable(app: AppState.App, includingPreorders: Swift.Bool) -> Swift.Bool
    func redownloadBuyParams(forApp: AppState.App) -> Swift.String?
    func purchaseHistoryIncludes(app: AppState.App) -> Swift.Bool
    func isUpdateEnabled(app: AppState.App) -> Swift.Bool
    func refreshOverridingCompatibility(_: Swift.Bool, for: AppState.AdamID)
}
extension AppState.AppStateController {
    func prospectiveState(forApp: AppState.App) -> AppState.State
    func clearWaiting(forApp: AppState.App) -> Swift.Bool
    func refreshOverridingCompatibility(_: Swift.Bool, for: AppState.AdamID)
    func state(forApp: AppState.App, applying: AppState.AppOffer) -> AppState.State
    func state(forApp: AppState.App) -> AppState.State
}