Package com.bosch.wdw

Interface WDWClientCallback


public interface WDWClientCallback

The WDWClientCallback needs to be implemented to react on events triggered by the WDW-SDK.

The callbacks are called from different threads. The implementation should be minimal. If UI objects have to be manipulated, you have to run your code on the UI thread using Activity.runOnUiThread(Runnable).

  • Method Details

    • onAreaEntered

      void onAreaEntered(String tripId)
      The onAreaEntered(String) callback is triggered when the user enters a relevant area. Only after this callback is triggered, the WDW-SDK will call the onDataCollected(String) callback.
      Parameters:
      tripId - A randomly generated id that identifies the user within the area
    • onAreaLeft

      void onAreaLeft(String tripId)
      The onAreaLeft(String) callback is triggered when the user leaves a relevant area. After this callback has been triggered, the WDW-SDK will no longer call the onDataCollected(String) callback.
      Parameters:
      tripId - The id that has been created for onAreaEntered(String)
    • onDataCollected

      void onDataCollected(String data)
      The onDataCollected(String) callback is triggered when there is new data available that can be sent to the backend. This callback will only be called after the WDWClient.startMonitoring() has been called.
      Parameters:
      data - Returning the data provided in relevant areas as string.
    • onErrorOccured

      void onErrorOccured(Error error)
      The onErrorOccured(Error) callback is triggered when a problem has occured.
      Parameters:
      error - describes the issue which occured.
    • onWarningReceived

      void onWarningReceived(WarningEvent warningEvent)
      The onWarningReceived(WarningEvent) callback is triggered when a new wrong way driver event has been received.
      Parameters:
      warningEvent - represents the evaluated result after message evaluation. See WarningEvent for detailed information.