Package com.navmii.android.dashcamsdk
Interface DashcamSdk.PositionListener
-
- Enclosing class:
- DashcamSdk
public static interface DashcamSdk.PositionListenerThe listener that will be notified about events related to the current GPS position.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonCurrentCountryChanged(java.lang.String countryIso3Code)This method is called when the current country changes.voidonCurrentRoadNameChanged(java.lang.String roadName)This method is called when the current road name changes.voidonPositionChanged(android.location.Location position, android.location.Location snappedPosition)This method is called when the current position changes.voidonSpeedLimitChanged(int speedLimit)This method is called when speed limit for the current road changes.voidonStartedMoving()This method is called when the SDK detects that you started moving.voidonStoppedMoving()This method is called when the SDK detects that you stopped moving.
-
-
-
Method Detail
-
onPositionChanged
void onPositionChanged(android.location.Location position, @Nullable android.location.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(java.lang.String countryIso3Code)
This method is called when the current country changes.- Parameters:
countryIso3Code- The ISO3 country code of the current country.
-
onCurrentRoadNameChanged
void onCurrentRoadNameChanged(java.lang.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.
-
-