Advanced configurations

Hiding the delete trip button

The SDK includes a feature that allows the user to manually delete a trip. Depending on your use case, you can allow or prohibit the deletion of a trip.

Therefore, the SDK contains a setting parameter to show or hide the delete button. The delete trip button is displayed as a "trash can" and appears at the top right of the trip detail screen.

By default delete trip button is enabled. To disable it, call the following method with parameter enableDeleteTrip set to false:

fun enableDeleteTrip(enableDeleteTrip: Boolean)

Trip list sorting

The analyzed trips are displayed on a list. This list shows the grouped trips by day from the most recent to the oldest one.

If more than one trip have been completed in a day, the trips for a day can be sorted in ascending or descending order of time.

By default, trips are sorted in ascending order, to change it, call the following method with parameter dayTripDescendingOrder set to true:

fun dayTripDescendingOrder(dayTripDescendingOrder: Boolean)

Trip advice feedback

If trip advice is configured for your DriveQuant account, drivers will receive trip advice at the end of a trip according to their driving.

For this advice, you can enable a feedback screen that allows yours drivers to send a feedback about the relevance of the advice.

By default, this screen is enabled but you can disable it by calling the following method with parameter enable set to false:

fun enableAdviceFeedback(enableAdviceFeedback: Boolean)

Enable alternative transportation modes display

The DriveKit SDK can detect alternative modes of transport such as public transport. In this case, the driver behaviour is not evaluated since he is not in a driving situation.

The Driver Data component automatically splits the rated trips from those that should not be rated in two separate lists.

  • The main list contains the trips scored and corresponding to transport modes where the user is in a driving situation (car, motorbike or truck).

  • The secondary list displays the trips identified in transportation modes where the user is not in a driving situation.

We have chosen to distinguish these trips and separate them into two independent lists. The list of main trips (i.e. scored) is always displayed by default. The list of alternative trips (i.e. not scored) can be shown or hidden according to your needs. By default, it is not displayed.

When this function is enabled, a filter icon appears in the upper right corner of the trip list screen. By clicking on it, you can select the list of trips made with an alternative mode of transport. To display the list of trips identified as alternative transportation modes, you can use the code below.

fun enableAlternativeTrips(enableAlternativeTrips: Boolean)

Last updated