References
DriveKitDelegate
DriveKitDelegate
is a protocol that can be passed as a parameter during the DriveKit Core module initialization. It gives useful events about the user lifecycle.
Method | Description |
---|---|
| The user has been successfully logged |
| The user has been disconnected (manual logout or the account is disabled/deleted) |
| The login has failed due to a |
| The update userId request has been processed with a |
| The delete account request has been processed with a |
UpdateUserIdStatus
UpdateUserIdStatus
is an enum that explains the request status after a userId has asked to be changed.
Value | Description |
---|---|
| The userId has been successfully updated |
| Occurs when DriveKit is not configured yet or if the new userId is the same as the old one |
| Error returned when the new userId is blank |
| The new userId is already taken by another user |
| The request failed but a retry will be done |
RequestError
RequestError
is an enum that describes the error type of a DriveKit request.
Value | Description |
---|---|
| The user has no connection or a bad one during the request. |
| A request has been launched but the user is not logged (401 error). |
| A 403 error occurred. You might don't have access to call that service. Please contact the DriveQuant to learn more. |
| Drivequant's backend responds with a 500 server error. |
| Drivequant's backend responds with a 400 error different than |
| An unknown error occurred, please contact the Drivequant team to investigate the issue. |
| The DriveKit API key has reached the accounts number limit. Please contact the Drivequant team. |
DeleteAccountStatus
DeleteAccountStatus
is an enum that describes the deletion status. It can have 3 values:
success
: Account deleted successfullyfailedToDelete
: Account not deleted, an error has occurredforbidden
: Account deletion not activated for this team
DKWeather
DKWeather
is an enum that describe each category of weather during a trip. It can have these values:
unknown
sun
cloud
fog
rain
snow
ice
Last updated