Other Type Aliases
The following type aliases are available globally.
-
DittoConnectionRequestHandler
AsynchronousA handler for connection requests from other peers.
Set a
DittoConnectionRequestHandler
onDittoPresence.connectionRequestHandler()
to allow or deny connection requests from other peers.Declaration
Swift
public typealias DittoConnectionRequestHandler = (_ connectionRequest: DittoConnectionRequest) async -> DittoConnectionRequestAuthorization
Parameters
connectionRequest
Contains information about the remote peer that can be used to make an authorization decision.
Return Value
.allow
if the request should be authorized,.deny
otherwise. -
Undocumented
Declaration
Swift
public typealias DittoSignalNext = () -> Void
-
A store observation handler is called whenever an active store observer receives a new query result.
Declaration
Swift
public typealias DittoStoreObservationHandler = (_ result: DittoQueryResult) -> Void
-
A store observation handler is called whenever an active store observer receives a new query result.
Call
signalNext()
to signal that the handler is ready to receive the next callback from the store observer.Declaration
Swift
public typealias DittoStoreObservationHandlerWithSignalNext = (_ result: DittoQueryResult, _ signalNext: @escaping DittoSignalNext) -> Void