References

DriveKitListener

DriveKitListener is an interface that can be passed as a parameter during the DriveKit Core module initialization. It gives useful events about the user lifecycle.

interface DriveKitListener {
    fun onConnected()
    fun onDisconnected()
    fun onAuthenticationError(errorType: RequestError)
    fun userIdUpdateStatus(status: UpdateUserIdStatus, userId:String?)
    fun onAccountDeleted(status: DeleteAccountStatus)
}

UpdateUserIdStatus

UpdateUserIdStatus is an enum that explains the request status after a userId has asked to be changed.

enum class UpdateUserIdStatus {
    UPDATED, FAILED_TO_UPDATE, INVALID_USER_ID, ALREADY_USED, SAVED_FOR_REPOST
}

RequestError

RequestError is an enum that describes the error type of a DriveKit request.

enum class RequestError {
    NO_NETWORK, UNAUTHENTICATED, FORBIDDEN, SERVER_ERROR, CLIENT_ERROR, UNKNOWN_ERROR, LIMIT_REACHED
}

DeleteAccountStatus

DeleteAccountStatus is an enum that describes the deletion status. It can have 3 values:

  • SUCCESS: Account deleted successfully

  • FAILED_TO_DELETE: Account not deleted, an error has occurred

  • FORBIDDEN: 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