public class ZendriveVehicleInfo extends Object
Constructor and Description |
---|
ZendriveVehicleInfo(String vehicleId,
String bluetoothAddress)
Creates a ZendriveVehicleInfo with the given vehicle id and bluetooth address.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getBluetoothAddress()
Get the bluetooth address of this vehicle info.
|
String |
getVehicleId()
Get the vehicle id of this vehicle info.
|
int |
hashCode() |
String |
toString() |
public ZendriveVehicleInfo(@NonNull String vehicleId, @NonNull String bluetoothAddress)
vehicleId
- The id of the vehicle to be associated with the SDK. Each vehicle
associated with the SDK needs a unique id.
AnalyzedDriveInfo
if the device
was connected to the vehicle's bluetooth during a drive. Please use
DriveInfo.vehicleTaggingDetails
to get the details
of the vehicle tagged.
Zendrive.isValidInputParameter(java.lang.String)
to validate the vehicle Id.
Passing an invalid id to
associateVehicle
will result in an error.bluetoothAddress
- The hardware address of the vehicle's bluetooth to be associated
with the SDK. This address will be used to scan for the vehicle
during drives.
getAddress
on the corresponding BluetoothDevice
object.
associateVehicle
will result in an error. You can use
BluetoothAdapter.checkBluetoothAddress(java.lang.String)
to validate the
bluetooth address.NullPointerException
- if vehicleId
or bluetoothAddress
is null.public String getVehicleId()
public String getBluetoothAddress()