HMKitFleet

HMKitFleet is the access point for the Fleet SDK functionality. It is instantiated with the configuration object.

Constructor parameters

configuration

Declaration

ServiceAccountApiConfiguration configuration

Read More

Methods

Get the eligibility status for a specific VIN

Declaration

CompletableFuture<Response<ClearanceStatus>> getEligibility(String vin, Brand brand,)

Parameters

vin

The vehicle VIN number

brand

The vehicle brand

Start the data access clearance process for a vehicle

Declaration

CompletableFuture<Response<ClearanceStatus>> requestClearance(String vin, Brand brand, List<ControlMeasure> controlMeasures)

Parameters

vin

The vehicle VIN number

brand

The vehicle brand

controlMeasures

Optional control measures for some vehicle brands

Start the data access clearance process for a vehicle

Declaration

CompletableFuture<Response<ClearanceStatus>> requestClearance(String vin, Brand brand)

Parameters

vin

The vehicle VIN number

brand

The vehicle brand

Get the status of VINs that have previously been registered for data access clearance with requestClearance

Declaration

CompletableFuture<Response<List<ClearanceStatus>>> getClearanceStatuses()

Discussion

After VIN is Approved, getVehicleAccess and subsequent sendCommand can be sent.

Delete clearance

Declaration

CompletableFuture<Response<RequestClearanceResponse>> deleteClearance(vin: String)

Discussion

If the clearance is in a pending state, the activation process is canceled.
If the vehicle is in an approved state, a revoke is attempted.

Get the Vehicle Access object.

Declaration

CompletableFuture<Response<VehicleAccess>> getVehicleAccess(String vin)

Parameters

vin

The vehicle VIN number

Send a telematics command to the vehicle

Declaration

CompletableFuture<TelematicsResponse> sendCommand(Bytes command, VehicleAccess vehicleAccess)

Parameters

command

The command that is sent to the vehicle

vehicleAccess

The vehicle access object returned in getVehicleAccess

Discussion

Check the Fleet SDK tutorial for more information about how to send Telematics commands.

Read More

(Deprecated) Revoke the vehicle clearance

Declaration

CompletableFuture<Response<Boolean>> revokeClearance(VehicleAccess vehicleAccess)

Parameters

vehicleAccess

The vehicle access object returned in getVehicleAccess

Environment

Declaration

enum HMKitFleet.Environment {
  PRODUCTION, SANDBOX
}

ClearanceStatus

Declaration

enum ClearanceStatus {
  APPROVED,
  PENDING,
  @Deprecated ERROR,
  REVOKING,
  REVOKED,
  REJECTED,
  CANCELING,
  CANCELED
}