StreamModeratorDelegate

public protocol StreamModeratorDelegate : AnyObject

Interface that receives the live results from a StreamModerator

  • moderatorDidDropFrame(_:) Default implementation

    Called when a frame was dropped to keep up with the stream. This method is optional

    Many dropped frames may indicate the system is under heavy load, and that the moderation quality has dropped.

    Default Implementation

    Default implementation — does nothing

    Declaration

    Swift

    func moderatorDidDropFrame(_ moderator: StreamModerator)
  • Called upon a new result being produced. By default this is upon a change to the decision.

    To monitor every result, pass the StreamModerator a different NewResultStrategy.

    Declaration

    Swift

    func moderatorDidProduceNewResult(_ moderator: StreamModerator, result: ModeratorResult)