Package com.bosch.wdw
Interface WDWClient
-
public interface WDWClientThe
WDWClientis the main interface of the WDW-SDK.The WDW-SDK is the client part of the WDW service. It provides the functionality to collect device sensor data and receive wrong way driver warnings. An instance of the
WDWClientcan be created using theWDWBuilder.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVERSIONCurrent WDW-SDK version number.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidevaluateMessage(java.lang.String serverMessage)Evaluates a message manually in case the internal push implementation of the WDW-SDK is not used.voidstartMonitoring()Starts the monitoring of the WDW-SDK.voidstopMonitoring()Stops the monitoring of the WDW-SDK.
-
-
-
Method Detail
-
evaluateMessage
void evaluateMessage(java.lang.String serverMessage)
Evaluates a message manually in case the internal push implementation of the WDW-SDK is not used. If the message is relevant for the current driver, theWDWClientCallback.onWarningReceived(WarningEvent)will be called.- Parameters:
serverMessage- the serverMessage to be evaluated.- See Also:
WDWClientCallback.onWarningReceived(WarningEvent)
-
startMonitoring
void startMonitoring()
Starts the monitoring of the WDW-SDK. When the WDW-SDK is started, it collects device sensor data and receives wrong way driver warnings. When it is stopped, it does nothing.
-
stopMonitoring
void stopMonitoring()
Stops the monitoring of the WDW-SDK. The WDW-SDK collects data until it is specifically told to stop. Even if the app is in the background, the WDW-SDK continues to collect device sensor data and receive wrong way driver warnings.
-
-