AnalysisResultSubscriber
public protocol AnalysisResultSubscriber : AnyObject
Subscriber for receiving analysis result update events.
-
Notifies the subscriber of an analysis result update.
The update is a lightweight notification. Use
getAnalysisResultto fetch the full typed data.Declaration
Swift
func analysisResultUpdated(_ update: AnalysisResultUpdate)Parameters
updateThe analysis result update notification.
-
Notifies the subscriber that the subscription connection state has changed.
The subscriber will not receive analysis result change notifications until the connection state changes to
.connected, and will stop receiving them once it changes to.disconnected.Declaration
Swift
func connectionStatusChanged(_ state: ConnectionState)Parameters
stateThe new connection state.
AnalysisResultSubscriber Protocol Reference