Package com.telenav.sdk.drive.motion.api
Interface DriveMotionClient
-
- All Implemented Interfaces:
public interface DriveMotionClient
In applications that use DriveMotionSDK, DriveMotionClient is the only way to use DriveMotion to expose capabilities. To get DriveMotionClient instance, use DriveMotionService.driveMotionClient .
-
-
Method Summary
Modifier and Type Method Description abstract Unit
startDrive()
Only effective in manual mode, used to start a trip abstract StartDriveRequest.Builder
startDriveRequest()
Create request in type of StartDriveRequest abstract Unit
stopDrive()
Only effective in manual mode, used to stop a trip abstract StopDriveRequest.Builder
stopDriveRequest()
Create request in type of StopDriveRequest abstract StartDriveDetectionRequest.Builder
startDriveDetectionRequest()
Create request in type of StartDriveDetectionRequest abstract StopDriveDetectionRequest.Builder
stopDriveDetectionRequest()
Create request in type of StopDriveDetectionRequest abstract GetDriveDetectionStateRequest.Builder
getDriveDetectionStateRequest()
Create request in type of GetDriveDetectionStateRequest -
-
Method Detail
-
startDrive
@Deprecated(message = "Using async startDriveRequest() instead.") abstract Unit startDrive()
Only effective in manual mode, used to start a trip
-
startDriveRequest
abstract StartDriveRequest.Builder startDriveRequest()
Create request in type of StartDriveRequest
- Returns:
- Since:
1.4.2
-
stopDrive
@Deprecated(message = "Using async stopDriveRequest() instead.") abstract Unit stopDrive()
Only effective in manual mode, used to stop a trip
-
stopDriveRequest
abstract StopDriveRequest.Builder stopDriveRequest()
Create request in type of StopDriveRequest
- Returns:
- Since:
1.4.2
-
startDriveDetectionRequest
abstract StartDriveDetectionRequest.Builder startDriveDetectionRequest()
Create request in type of StartDriveDetectionRequest
- Returns:
-
stopDriveDetectionRequest
abstract StopDriveDetectionRequest.Builder stopDriveDetectionRequest()
Create request in type of StopDriveDetectionRequest
- Returns:
-
getDriveDetectionStateRequest
abstract GetDriveDetectionStateRequest.Builder getDriveDetectionStateRequest()
Create request in type of GetDriveDetectionStateRequest
-
-
-
-