Protocol
TchekBuyBackFlowDelegate
public protocol TchekBuyBackFlowDelegate
A protocol to implement in order to be notified of events from the Buy Back Flow
Usage:
extension ViewController: TchekBuyBackFlowDelegate {
func onBuyBackFlowFinished {
print("\(self): onBuyBackFlowFinished: tchekScan: \(tchekScan.id)")
}
func onBuyBackFlowError(error: TchekThirdPartyError) {
print("\(self): onBuyBackFlowError: \(error)")
}
}
Requirements
onBuyBackFlowFinished(tchekScanId:immatriculation:)
func onBuyBackFlowFinished(tchekScanId: String, immatriculation: String?)
Method called when the Buy Back Flow is finished
-
Parameters
-
tchekScanId: Id of the Tchek object resulting from the successful Shoot/Inspect flow
-
immatriculation: Immatriculation of the inspected vehicle, null if not give to builder
onBuyBackFlowError(error:)
func onBuyBackFlowError(error: TchekThirdPartyError)
Method called when error occurs on the Buy Back Flow
-
Parameters
-
error TchekThirdPartyError enum