Interface DashcamSdk.PositionListener

Enclosing class:
DashcamSdk

public static interface DashcamSdk.PositionListener
The listener that will be notified about events related to the current GPS position.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called when the current country changes.
    void
    This method is called when the current road name changes.
    void
    onPositionChanged(Location position, Location snappedPosition)
    This method is called when the current position changes.
    void
    onSpeedLimitChanged(int speedLimit)
    This method is called when speed limit for the current road changes.
    void
    This method is called when the SDK detects that you started moving.
    void
    This method is called when the SDK detects that you stopped moving.
  • Method Details

    • onPositionChanged

      void onPositionChanged(Location position, @Nullable Location snappedPosition)
      This method is called when the current position changes.
      Parameters:
      position - The current position.
      snappedPosition - The current position, snapped to the road.
    • onCurrentCountryChanged

      void onCurrentCountryChanged(String countryIso3Code)
      This method is called when the current country changes.
      Parameters:
      countryIso3Code - The ISO3 country code of the current country.
    • onCurrentRoadNameChanged

      void onCurrentRoadNameChanged(String roadName)
      This method is called when the current road name changes.
      Parameters:
      roadName - The name of the current road.
    • onSpeedLimitChanged

      void onSpeedLimitChanged(int speedLimit)
      This method is called when speed limit for the current road changes.
      Parameters:
      speedLimit - The speed limit in km/h or 0 if there is no information.
    • onStartedMoving

      void onStartedMoving()
      This method is called when the SDK detects that you started moving.

      It can be used to start recording automatically.

    • onStoppedMoving

      void onStoppedMoving()
      This method is called when the SDK detects that you stopped moving.

      It can be used to stop recording automatically.