Real-Time Events

LeanBringgRealTimeEventCallback

LeanBringgRealTimeEventCallback is a Bringg Driver SDK for Android callback interface providing method signatures for methods invoked by real-time events, including shift, task, and way point events. You implement a new instance of this interface as an argument for a method parameter. You can customize your implementation to handle these real-time events in your app according to your own requirements.

onShiftEnded

Invoked in real-time when a driver's shift ends.

void onShiftEnded()

onTaskAdded

Invoked in real-time when a task is added.

void onTaskAdded(Task newTask)

Input Parameters

newTaskA reference to a Task data type containing the detailed information about the new task.

onTaskRemoved

Invoked in real-time when a task is removed.

void onTaskRemoved(long id)

Input Parameters

idThe Id of the task that was removed.

onTaskStarted

Invoked in real-time when a task is started.

void onTaskStarted(Task remoteTask)

Input Parameters

remoteTaskA reference to a Task data type containing the detailed information about the new task.

onWayPointArrived

Invoked in real-time when a driver arrives at a way point.

void onWayPointArrived(Waypoint waypoint)

Input Parameters

wayPointA reference to a Waypoint data type containing the detailed information about the new task.