Package com.bosch.wdw

Interface WDWClient


public interface WDWClient

The WDWClient is 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 WDWClient can be created using the WDWBuilder.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Current WDW-SDK version number.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    evaluateMessage(String serverMessage)
    Evaluates a message manually in case the internal push implementation of the WDW-SDK is not used.
    void
    Starts the monitoring of the WDW-SDK.
    void
    Stops the monitoring of the WDW-SDK.
  • Field Details

    • VERSION

      static final String VERSION
      Current WDW-SDK version number.
  • Method Details

    • evaluateMessage

      void evaluateMessage(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, the WDWClientCallback.onWarningReceived(WarningEvent) will be called.
      Parameters:
      serverMessage - the serverMessage to be evaluated.
      See Also:
    • 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.