TNDriveMotionClient
@objc
public protocol TNDriveMotionClient : NSObjectProtocol
In applications that use DriveMotionSDK, TNDriveMotionClient is the only way to use DriveMotion to expose capabilities. To get TNDriveMotionClient instance, use {@link TNDriveMotionService#getDriveMotionClient()} .
-
Only effective in manual mode, used to start a trip
@throws TNDriveMotionException If drive detection mode is set to
auto.Declaration
Swift
@available(*, deprecated, message: "Using async startDriveRequest(﹚ instead.") func startDrive() throws -
Create request in type of
TNStartDriveRequestDeclaration
Swift
func startDriveRequest() -> TNStartDriveRequestBuilderReturn Value
-
Only effective in manual mode, used to stop a trip
@throws TNDriveMotionException If drive detection mode is set to
auto.Declaration
Swift
@available(*, deprecated, message: "Using async stopDriveRequest(﹚ instead.") func stopDrive() throws -
Create request in type of
TNStopDriveRequestDeclaration
Swift
func stopDriveRequest() -> TNStopDriveRequestBuilderReturn Value
-
Create request in type of
TNStartDriveDetectionRequestDeclaration
Swift
func startDriveDetectionRequest() -> TNStartDriveDetectionRequestBuilderReturn Value
-
Create request in type of
TNStopDriveDetectionRequestDeclaration
Swift
func stopDriveDetectionRequest() -> TNStopDriveDetectionRequestBuilderReturn Value
-
Create request in type of
TNGetDriveDetectionStateRequestDeclaration
Swift
func getDriveDetectionStateRequest() -> TNGetDriveDetectionStateRequestBuilderReturn Value