addCustomWarningProvider abstract method

void addCustomWarningProvider(
  1. CustomWarningProvider customWarningProvider,
  2. SegmentDataLoaderOptions segmentDataLoaderOptions
)

Registers a custom warning provider.

The registered provider participates in warning evaluation and is invoked to generate custom warnings based on the current vehicle position.

  • customWarningProvider A provider responsible for generating custom warnings.

  • segmentDataLoaderOptions Specifies which data should be loaded by the SegmentDataLoader.

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.

Implementation

void addCustomWarningProvider(CustomWarningProvider customWarningProvider, SegmentDataLoaderOptions segmentDataLoaderOptions);