SwiftactorCompanionSetupKit

actor CompanionSetupKit.CSKServer

Structure

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

Members 42

  1. deinitdeinit
  2. fieldvar _audioPairingLoopCount: Int
  3. fieldvar _audioPairingPassword: String?
  4. fieldvar _audioPairingPlayContinuation: CheckedContinuation<Bool, Error>?
  5. fieldvar _audioPairingPlayer: APCPlayer?
  6. fieldvar _bluetoothAdvertiser: CBAdvertiser?
  7. fieldvar _bluetoothAdvertiserNeeded: Bool
  8. fieldvar _cancelCalled: Bool+0x10
  9. fieldvar _configuration: CompanionSetupKit.CSKServer.Configuration
  10. fieldvar _currentPassword: String?
  11. fieldvar _eventContinuations: [UInt64 : AsyncStream<CompanionSetupKit.CSKServer.Event>.Continuation]
  12. fieldvar _eventHandler: (@Sendable (CompanionSetupKit.CSKServer.Event) async -> ())?
  13. fieldvar _finishCalled: Bool
  14. fieldvar _identitiesChangedNotification: CoreUtilsSwift.CUDarwinNotification?
  15. fieldvar _idleTimerDisable: CompanionSetupKit.CSKIdleTimerDisable?
  16. fieldlet _logger: os.Logger
  17. fieldvar _nexusConnections: Set<Nexus.NXConnection>
  18. fieldvar _nexusReady: Bool
  19. fieldvar _nexusRequestHandlers: [Nexus.NXSession.RequestHandlerRegistration]
  20. fieldvar _nexusStarted: Bool
  21. fieldvar _ready: Bool
  22. fieldvar _selfIdentity: RPIdentity?
  23. fieldvar _sharingClient: SFClient?
  24. fieldvar _storedSensitivePeerData: Bool
  25. fieldvar _systemMonitor: CUSystemMonitor?
  26. fieldvar _updatePending: Bool
  27. fieldvar _updateRunning: Bool
  28. fieldlet environment: CoreUtilsSwift.CUEnvironmentValues
  29. fieldlet nexusSession: Nexus.NXSession
  30. fieldvar peerLanguageCode: String?
  31. fieldvar peerLocaleIdentifier: String?
  32. func_report(event: CompanionSetupKit.CSKServer.Event) -> ()
  33. funccancel(informClient: Bool) async -> ()
  34. funcfinish() async -> ()
  35. funcperform(command: CompanionSetupKit.CSKServer.Command) async throws -> ()
  36. funcsetEventHandler(@isolated(any) @Sendable (CompanionSetupKit.CSKServer.Event) async -> ()) -> ()
  37. funcstart() async -> ()
  38. funcstatusUpdated(CompanionSetupKit.CSKStatus) -> ()
  39. initCompanionSetupKit.CSKServer.__allocating_init(configuration: CompanionSetupKit.CSKServer.Configuration, environment: CoreUtilsSwift.CUEnvironmentValues) -> CompanionSetupKit.CSKServer
  40. typealiastypealias Command = Command
  41. typealiastypealias Event = Event
  42. varvar storedSensitivePeerData: Bool { get set }
actor CSKServer {
    enum Command {
        enum CodingKeys {
            case authenticationConfigure
            case nexusSession
            case statusUpdate
            case updateBluetoothAdvertiserNeeded
        }
        enum AuthenticationConfigureCodingKeys {
            case _0
        }
        enum NexusSessionCodingKeys {
            case _0
        }
        enum StatusUpdateCodingKeys {
            case _0
        }
        enum UpdateBluetoothAdvertiserNeededCodingKeys {
            case _0
        }
        case authenticationConfigure(Nexus.NXAuthenticationConfiguration)
        case nexusSession(Nexus.NXSession.Command)
        case statusUpdate(CompanionSetupKit.CSKStatus)
        case updateBluetoothAdvertiserNeeded(Swift.Bool)

        var description: Swift.String {
            get
        }
    }
    enum Event {
        case activationServer(CompanionSetupKit.CSKStepActivationServer.Event)
        case appleAccountServer(CompanionSetupKit.CSKStepAppleAccountSetupEvent)
        case audioPairingEvent(CompanionSetupKit.CSKServer.AudioPairingEvent)
        case authenticationPresent(Nexus.NXAuthenticationPresentInfo)
        case authenticationCompleted(Nexus.NXAuthenticationCompletedInfo)
        case basicConfig(CompanionSetupKit.CSKBasicConfigEvent)
        case bluetoothAdvertiserFailed(reason: CoreUtilsSwift.CUError)
        case homeKitSetupServer(CompanionSetupKit.CSKStepHomeKitSetupServer.Event)
        case nexusSession(Nexus.NXSession.Event)
        case statusUpdated(CompanionSetupKit.CSKStatus)
        case wifiServer(CompanionSetupKit.CSKStepWiFiSetupEvent)
        case bluetoothAdvertiserStarted
        case bluetoothAdvertiserStopped
        case clientCanceled
        case disconnected
        case finished
        case restartImminent
        case serverInactive
        case serverReady
        case sessionReady

        var description: Swift.String {
            get
        }
    }
    enum AudioPairingEvent {
        case started
        case play

        var description: Swift.String {
            get
        }
    }
    struct Configuration {
        var allowedPairingKeyTypes: [Nexus.NXConnection.PairingKeyType]?
        var audioPairingResourceName: Swift.String?
        var awdlEnabled: Swift.Bool
        var bluetoothAdvertiserConfiguration: CompanionSetupKit.CSKBluetoothAdvertiserConfiguration?
        var nexusSessionConfiguration: Nexus.NXSession.Configuration?
        var passwordType: __C.PairingSetupCodeType?
        var useAuthTag: Swift.Bool

        init(bluetoothAdvertiserConfiguration: CompanionSetupKit.CSKBluetoothAdvertiserConfiguration?, nexusSessionConfiguration: Nexus.NXSession.Configuration?)
        init()

        var clientLabel: Swift.String {
            get
        }
        var description: Swift.String {
            get
        }
    }
    var _cancelCalled: Swift.Bool
    var _configuration: CompanionSetupKit.CSKServer.Configuration
    var _currentPassword: Swift.String?
    let environment: CoreUtilsSwift.CUEnvironmentValues
    var _eventContinuations: [Swift.UInt64 : Swift.AsyncStream<CompanionSetupKit.CSKServer.Event>.Continuation]
    var _finishCalled: Swift.Bool
    var _idleTimerDisable: CompanionSetupKit.CSKIdleTimerDisable?
    let _logger: os.Logger
    var peerLanguageCode: Swift.String?
    var peerLocaleIdentifier: Swift.String?
    var _ready: Swift.Bool
    var _storedSensitivePeerData: Swift.Bool
    var _systemMonitor: __C.CUSystemMonitor?
    var _updatePending: Swift.Bool
    var _updateRunning: Swift.Bool
    var _eventHandler: (@Sendable (_: CompanionSetupKit.CSKServer.Event) async -> ())?
    var _audioPairingLoopCount: Swift.Int
    var _audioPairingPassword: Swift.String?
    var _audioPairingPlayContinuation: Swift.CheckedContinuation<Swift.Bool, any Swift.Error>?
    var _audioPairingPlayer: __C.APCPlayer?
    var _bluetoothAdvertiser: __C.CBAdvertiser?
    var _bluetoothAdvertiserNeeded: Swift.Bool
    var _sharingClient: __C.SFClient?
    var _identitiesChangedNotification: CoreUtilsSwift.CUDarwinNotification?
    var _selfIdentity: __C.RPIdentity?
    let nexusSession: Nexus.NXSession
    var _nexusConnections: Swift.Set<Nexus.NXConnection>
    var _nexusReady: Swift.Bool
    var _nexusStarted: Swift.Bool
    var _nexusRequestHandlers: [Nexus.NXSession.RequestHandlerRegistration]

    init(configuration: CompanionSetupKit.CSKServer.Configuration, environment: CoreUtilsSwift.CUEnvironmentValues)

    var storedSensitivePeerData: Swift.Bool {
        get
        set
    }

    func statusUpdated(_: CompanionSetupKit.CSKStatus)
    func setEventHandler(_: @escaping @isolated(any) @Sendable (_: CompanionSetupKit.CSKServer.Event) async -> ())
    func start() async
    func cancel(informClient: Swift.Bool) async
    func finish() async
    func _report(event: CompanionSetupKit.CSKServer.Event)
    func perform(command: CompanionSetupKit.CSKServer.Command) async throws

    deinit
}