ZendriveMockError
enum ZendriveMockError : int {}
Error returned as code to NSError from -[ZendriveMockDrive simulateDrive:error:]
public APIs in case of failures.
-
This is not a mock drive build. Please refer to
kMockDriveBuildKey
for more info.Declaration
Objective-C
kZendriveErrorNotMockDriveBuild = 0
-
Simulation run time is invalid. Simulation time must be a positive integer less than 5 hours.
Declaration
Objective-C
kZendriveErrorInvalidRunTime = 1
-
SDK is not setup.
Declaration
Objective-C
kZendriveErrorSDKNotSetup = 2
-
AutoDetection Mode is not ON. Currently mock mode only works for automatic trip detection.
Declaration
Objective-C
kZendriveErrorAutoDetectionModeNotOn = 3
-
Simulation is already in progress.
Declaration
Objective-C
kZendriveErrorSimulationAlreadyInProgress = 4
-
The vehicleType set in the
ZendriveMockDrive
to be simulated is different from the type set in driverAttributes during the SDK setup.Declaration
Objective-C
kSimulationWithUnsupportedVehicleType = 5