public enum ZendriveVehicleTaggingOperationResult extends Enum<ZendriveVehicleTaggingOperationResult>
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Get the message for the vehicle tagging operation.
|
static ZendriveVehicleTaggingOperationResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZendriveVehicleTaggingOperationResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZendriveVehicleTaggingOperationResult SUCCESS
public static final ZendriveVehicleTaggingOperationResult SDK_NOT_SETUP
public static final ZendriveVehicleTaggingOperationResult BLUETOOTH_PERMISSION_REVOKED
associateVehicle
operation failed
because the necessary bluetooth permission is denied. Please check the cases below which
can lead to this error:
1. Near by device permission has been denied by the user at run time.
2. For devices running on and above Android 12, BLUETOOTH_CONNECT permission is not present
in the AndroidManifest.xml file.
3. For devices running on Android version below Android 12, BLUETOOTH permission is not
present in the AndroidManifest.xml file.
public static final ZendriveVehicleTaggingOperationResult INVALID_ZENDRIVE_VEHICLE_INFO
ZendriveVehicleInfo
provided to
associateVehicle
call is invalid.
ZendriveVehicleInfo
is invalid if:
Zendrive.isValidInputParameter(java.lang.String)
)
or longer than 64 characters.BluetoothAdapter.checkBluetoothAddress(String)
).public static final ZendriveVehicleTaggingOperationResult ASSOCIATED_VEHICLE_CONFLICT
associateVehicle
operation failed because the
vehicleId
or the bluetoothAddress
of the ZendriveVehicleInfo
provided conflicts with the information of a currently associated vehicle.public static final ZendriveVehicleTaggingOperationResult ASSOCIATED_VEHICLES_LIMIT_EXCEEDED
associateVehicle
operation failed
because it tried to associate more than two distinct vehicles.
public static final ZendriveVehicleTaggingOperationResult INVALID_VEHICLE_ID
vehicleId
provided to
dissociateVehicle
call is either invalid or
longer than 64 characters.public static final ZendriveVehicleTaggingOperationResult VEHICLE_NOT_ASSOCIATED
dissociateVehicle
operation failed
because it tried to dissociate a vehicle which is not associated.public static final ZendriveVehicleTaggingOperationResult BLE_SCAN_NOT_SUPPORTED
getNearbyBeacons
operation fails with the
following error when BLE scanning is not supported by the device hardware.public static final ZendriveVehicleTaggingOperationResult BEACON_SCAN_ALREADY_IN_PROGRESS
ZendriveVehicleTagging.getNearbyBeacons(android.content.Context, java.util.UUID, java.lang.Integer, java.lang.Integer, com.zendrive.sdk.ZendriveBeaconScanCallback)
operation fails with the following error
when there is another ZendriveVehicleTagging.getNearbyBeacons(android.content.Context, java.util.UUID, java.lang.Integer, java.lang.Integer, com.zendrive.sdk.ZendriveBeaconScanCallback)
scan already in progress.public static final ZendriveVehicleTaggingOperationResult BLUETOOTH_NOT_AVAILABLE
ZendriveVehicleTagging.getNearbyBeacons(android.content.Context, java.util.UUID, java.lang.Integer, java.lang.Integer, com.zendrive.sdk.ZendriveBeaconScanCallback)
operation fails with the following error
when the bluetoothAdapter is not enabled or the bluetoothLeScanner is unavailable.
On SDK version 8.0, this error might also be received if the Nearby Devices permission is
forcefully denied on devices running on Android 12 or above.public static final ZendriveVehicleTaggingOperationResult BLE_SCAN_INTERNAL_ERROR
ZendriveVehicleTagging.getNearbyBeacons(android.content.Context, java.util.UUID, java.lang.Integer, java.lang.Integer, com.zendrive.sdk.ZendriveBeaconScanCallback)
operation fails with the following error
when BLE scan fails to start due to an internal error. In order to resolve it, please
try switching OFF the Bluetooth and turning it ON again, and retry scanning.
Please contact "support@zendrive.com" if the error continues to occur.public static final ZendriveVehicleTaggingOperationResult LOCATION_ERROR
ZendriveVehicleTagging.getNearbyBeacons(android.content.Context, java.util.UUID, java.lang.Integer, java.lang.Integer, com.zendrive.sdk.ZendriveBeaconScanCallback)
operation fails with the following error
if the Manifest.permission.ACCESS_FINE_LOCATION
is not provided.public static ZendriveVehicleTaggingOperationResult[] values()
for (ZendriveVehicleTaggingOperationResult c : ZendriveVehicleTaggingOperationResult.values()) System.out.println(c);
public static ZendriveVehicleTaggingOperationResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getMessage()