ElectronicHorizonListener (API Reference)
Package com.here.sdk.electronichorizon
Interface ElectronicHorizonListener
public interface ElectronicHorizonListener
Provides a listener for receiving updates during execution of the ElectronicHorizonEngine.update(com.here.sdk.navigation.MapMatchedLocation) method.
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.
Offline availability: This property is available online and offline.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonElectronicHorizonUpdated(ElectronicHorizonErrorCode errorCode, ElectronicHorizonUpdate update) Called whenever the electronic horizon subsystem produces: a new update, an error,
-
Method Details
-
onElectronicHorizonUpdated
void onElectronicHorizonUpdated(@Nullable ElectronicHorizonErrorCode errorCode, @Nullable ElectronicHorizonUpdate update) Called whenever the electronic horizon subsystem produces:
- a new update,
- an error,
The client must inspect
error_codeto determine whether the call represents an error or a valid update.- Parameters:
errorCode-The error associated with the horizon computation.
nullmeans no error.update-The update describing the current electronic horizon state. May be
nullif an update could not be produced.
-