<GMTDVehicleReporterListener> Protocol Reference

<GMTDVehicleReporterListener> Protocol Reference

Overview

Protocol for responding to periodic vehicle updates sent by GMTDVehicleReporter.

Public Member Functions

(void) - vehicleReporter:didSucceedVehicleUpdate:
 Informs the listeners that the Fleet Engine backend successfully received the vehicle location and state update.
(void) - vehicleReporter:didFailVehicleUpdate:withError:
 Informs the listeners that a vehicle update failed.

Member Function Documentation

- (void) vehicleReporter: (GMTDVehicleReporter *)  vehicleReporter
didSucceedVehicleUpdate: (GMTDVehicleUpdate *)  vehicleUpdate 

Informs the listeners that the Fleet Engine backend successfully received the vehicle location and state update.

Parameters:
vehicleReporterIndicates the instance of GMTDVehicleReporter that generated the event.
vehicleUpdateContains the current location and state of the vehicle.
- (void) vehicleReporter: (GMTDVehicleReporter *)  vehicleReporter
didFailVehicleUpdate: (GMTDVehicleUpdate *)  vehicleUpdate
withError: (NSError *)  error 

Informs the listeners that a vehicle update failed.

As long as location tracking is enabled, GMTDVehicleReporter continues to send the latest data to the Fleet Engine backend.

If location tracking is disabled and this is for updating the vehicle state to OFFLINE, the developer can call updateVehicleState: with GMTDVehicleStateOffline to trigger one-off updates.

Parameters:
vehicleReporterIndicates the instance of GMTDVehicleReporter that generated the event.
vehicleUpdateContains the current location and state of the vehicle.
errorIndicates the reason that an error occurred.