ElectronicHorizonPositionDelegate
public protocol ElectronicHorizonPositionDelegate : AnyObject
Interface to listen to updates after the ElectronicHorizon.update(...) method execution.
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 whenever a new position on the path tree is calculated.
Declaration
Swift
func onElectronicHorizonPositionUpdated(errorCode: ElectronicHorizonErrorCode?, electronicHorizonPathPosition: ElectronicHorizonPathPosition?)Parameters
errorCodeError code as result of the
ElectronicHorizon.update(...)execution. Null if execution is successful.electronicHorizonPathPositionPosition of the vehicle on the
ElectronicHorizonPaths. Valid only for the previousonElectronicHorizonUpdated(...). If the newElectronicHorizonUpdateis available, then the newElectronicHorizonPathPositionshould be used.