ElectronicHorizonDelegate

public protocol ElectronicHorizonDelegate : AnyObject

Provides a delegate for receiving updates during execution of the ElectronicHorizonEngine.update(...) method.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

Offline availability: This property is available online and offline.

  • If multiple listeners are registered, callbacks are delivered sequentially, but their order is not defined. Do not depend on one listener receiving an update before another. Called whenever the electronic horizon subsystem produces:

    • a new update,
    • an error,

    The client must inspect error_code to determine whether the call represents an error or a valid update.

    Declaration

    Swift

    func onElectronicHorizonUpdated(errorCode: ElectronicHorizonErrorCode?, update: ElectronicHorizonUpdate?)

    Parameters

    errorCode

    The error associated with the horizon computation. nil means no error.

    update

    The update describing the current electronic horizon state. May be nil if an update could not be produced.