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.
-
Called after the every location update was processed.
Declaration
Swift
func onWarnings(warnings: [WarningUpdate], warningsRegistry: WarningsRegistry)Parameters
warningsThe list of warning objects containing details about each warning.
warningsRegistryWarningsRegistryobject to retrieve the concrete warning instance.