Package com.navmii.android.dashcamsdk
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 TypeMethodDescriptionvoid
onCurrentCountryChanged
(String countryIso3Code) This method is called when the current country changes.void
onCurrentRoadNameChanged
(String roadName) 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
This method is called when the current position changes.- Parameters:
position
- The current position.snappedPosition
- The current position, snapped to the road.
-
onCurrentCountryChanged
This method is called when the current country changes.- Parameters:
countryIso3Code
- The ISO3 country code of the current country.
-
onCurrentRoadNameChanged
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.
-