DriverApi

  • DriverApi serves as the base entry point for the Driver SDK and offers specialized APIs like DeliveryDriverApi for deliveries.

  • It provides a method, setAbnormalTerminationReportingEnabled, to control the reporting of SDK crashes for stability improvements, enabled by default.

  • Developers can use setPhenotypeContext to provide a context for potential configuration or feature management, although this method's specifics aren't detailed.

  • DriverApi extends the base Java Object and inherits its standard methods.

  • A deprecated FleetEngineConfig interface is also present but should be avoided due to its legacy status.

public class DriverApi extends Object
Known Direct Subclasses

Base class for entry point into the DriverApi.

Nested Class Summary

interface DriverApi.FleetEngineConfig This interface is deprecated. legacy hook  

Public Method Summary

static void
setAbnormalTerminationReportingEnabled(boolean enabled)
Enables/disables reporting abnormal SDK terminations such as the app crashes while the SDK is still running.

Inherited Method Summary

Public Methods

public static void setAbnormalTerminationReportingEnabled (boolean enabled)

Enables/disables reporting abnormal SDK terminations such as the app crashes while the SDK is still running.

This allows Google to improve SDK stability when applicable.

Note: The default is true the value must be updated before any SDK usage to have effect.

Parameters
enabled whether abnormal SDK terminations should be reported.