Package com.navmii.android.dashcamsdk
Class DashcamSdk
java.lang.Object
com.navmii.android.dashcamsdk.DashcamSdk
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This class contains the configuration settings required to initialize the SDK.static interface
The listener that will be notified when the change between day and night happens at the current GPS position.static class
This class contains information about an SDK initialization error.static interface
The listener that will be notified about events related to the current GPS position.static interface
The listener that will be notified about changes of the SDK's state. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a listener that will be notified when the change between day and night happens at the current GPS position.void
Adds a listener that will be notified about events related to the current GPS position.void
Adds a listener that will be notified when the current state of the SDK changes.void
Deinitializes the SDK.int
static DashcamSdk
Returns the instance of the dashcam SDK.getState()
static int
static String
void
initSdkAsync
(Context context, DashcamSdk.ConfigurationSettings configurationSettings) Initializes the SDK.void
Removes the specified day/night change listener.void
Removes the specified position listener.void
Removes the specified state change listener.
-
Method Details
-
getInstance
Returns the instance of the dashcam SDK.- Returns:
- The
DashcamSdk
object.
-
getVersionName
-
getVersionCode
public static int getVersionCode() -
deinitializeSdk
public void deinitializeSdk()Deinitializes the SDK.Use this method to release all resources used by the SDK.
If state is
DashcamSdkState.INITIALIZING
, then actual deinitialization will be postponed until initialization finishes (successfully or not). In these cases SDK will skipDashcamSdkState.INITIALIZED
orDashcamSdkState.INITIALIZATION_FAILED
states, going directly toDashcamSdkState.UNINITIALIZED
state. -
getInitializationError
- Returns:
- The error that occurred during initialization of the SDK or null if initialization completed successfully.
-
getState
- Returns:
- The current state of the SDK.
-
getCurrentPosition
- Returns:
- Current position.
-
getCurrentRoadName
- Returns:
- The name of current road.
-
getCurrentSpeedLimit
public int getCurrentSpeedLimit()- Returns:
- Current speed limit in km/h, or 0 if there is no speed limit.
-
getCurrentCountryIso3Code
- Returns:
- ISO3 code of current country or an empty string if current country cannot be determined.
-
getLibraryManager
- Returns:
- An instance of a
LibraryManager
object.
-
getCameraController
- Returns:
- An instance of a
CameraController
object.
-
getAdasController
- Returns:
- An instance of an
AdasController
object.
-