SwiftclassCopresenceCore

class CopresenceCore.XPCClient

Members 11

  1. deinitdeinit
  2. fieldvar _connection: CopresenceCore.Resettable<NSXPCConnection>
  3. fieldvar connectionClosure: (() throws -> NSXPCConnection)?
  4. fieldlet queue: OS_dispatch_queue
  5. funcdestroyConnection() -> ()
  6. funchandleServerDisconnect() -> ()
  7. funcwithHost(body: (A.HostObjectInterface) throws -> (), errorHandler: (Error) -> ()) throws -> ()
  8. funcwithSynchronousHost<A>(body: (A.HostObjectInterface) throws -> A1, errorHandler: (Error) -> ()) throws -> A1
  9. initCopresenceCore.XPCClient.__allocating_init(connection: () throws -> NSXPCConnection) -> CopresenceCore.XPCClient<A>
  10. initCopresenceCore.XPCClient.__allocating_init(listenerEndpoint: NSXPCListenerEndpoint) -> CopresenceCore.XPCClient<A>
  11. initCopresenceCore.XPCClient.__allocating_init() -> CopresenceCore.XPCClient<A>
class XPCClient<A>: __C.NSObject where A: CopresenceCore.XPCInterface {
    let queue: __C.OS_dispatch_queue
    var connectionClosure: (() throws -> __C.NSXPCConnection)?
    // synthesized from the backing storage `_connection`; the property's own accessors are stripped
    @CopresenceCore.Resettable var connection: __C.NSXPCConnection {
        get
    }

    func destroyConnection()
    func handleServerDisconnect()

    init(connection: @escaping () throws -> __C.NSXPCConnection)
    init(listenerEndpoint: __C.NSXPCListenerEndpoint)
    @objc override init()

    final func withSynchronousHost<A1>(body: (_: A.HostObjectInterface) throws -> A1, errorHandler: @escaping (_: any Swift.Error) -> ()) throws -> A1
    final func withHost(body: (_: A.HostObjectInterface) throws -> (), errorHandler: @escaping (_: any Swift.Error) -> ()) throws

    deinit
}