WarningDelegate

public protocol WarningDelegate : AnyObject

A generic listener interface protocol for receiving warning notifications.

Implementations of this interface are notified whenever the WarnerEngine detects new warnings. The listener receives a list of Warning objects, each describing a specific event or condition that requires user attention.

Classes interested in warning updates should implement this listener and register themselves via WarnerEngine.addWarningListener.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • Called when a new warnings is detected. This method is invoked whenever a new list of warnings becomes available.

    Declaration

    Swift

    func onWarnings(warnings: [Warning])

    Parameters

    warnings

    The list of warning objects containing details about each warning.