DrivingInsightsApi

This class is part of an Early Access feature, and is subject to change in the future.

Use this API to receive driving insights about vehicular transports.

DrivingInsightsApi API

getCallWhileMovingEvents()

List<CallWhileMovingEvent> getCallWhileMovingEvents(String transportId);

Returns the call while moving events for a completed transport.

Note: calling this method on an uninitialized SDK will throw an SdkException.

getDrivingInsights()

@Nullable DrivingInsights getDrivingInsights(String transportId)

Returns the driving insights for a given transport, or null if there are no driving insights or the transport ID is invalid.

Note: calling this method on an uninitialized SDK will throw an SdkException.

getHarshDrivingEvents()

List<HarshDrivingEvent> getHarshDrivingEvents(String transportId)

Returns the harsh driving events for a completed transport.

Note: calling this method on an uninitialized SDK will throw an SdkException.

getPhoneUsageEvents()

List<PhoneUsageEvent> getPhoneUsageEvents(String transportId)

Returns the phone usage events for a completed transport.

Note: calling this method on an uninitialized SDK will throw an SdkException.

getSpeedingEvents()

List<SpeedingEvent> getSpeedingEvents(@NonNull String transportId);

Returns the speeding events for a completed transport.

Note: calling this method on an uninitialized SDK will throw an SdkException.

setDrivingInsightsReadyListener()

void setDrivingInsightsReadyListener(@Nullable DrivingInsightsReadyListener listener)

Sets a listener that will be invoked when the driving insights for a completed transport becomes ready.

Note: calling this method on an uninitialized SDK will throw an SdkException.

Last updated