Interface RealisticViewWarningListener


public interface RealisticViewWarningListener

This interface should be implemented in order to receive realistic view warnings.

A RealisticViewWarning will not be given until the previous warning of that type has been passed. For example, a route with RealisticViewWarning 120 meters and RealisticViewWarning 160 meters ahead, the first RealisticViewWarning.distanceToRealisticViewInMeters is 120 meters and the next RealisticViewWarning.distanceToRealisticViewInMeters is then 40 meters, since that is the distance between the first and second warnings.

  • Method Details

    • onRealisticViewWarningUpdated

      void onRealisticViewWarningUpdated(@NonNull RealisticViewWarning realisticViewWarning)

      Called whenever a new realistic view warning is available.

      Parameters:
      realisticViewWarning -

      The object that contains details on the realistic view warning.