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 getAnalysisResult to fetch the full typed data.

    Declaration

    Swift

    func analysisResultUpdated(_ update: AnalysisResultUpdate)

    Parameters

    update

    The 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

    state

    The new connection state.