TchekSDK Documentation

Protocol Tchek​Buy​Back​Flow​Delegate

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

on​Buy​Back​Flow​Finished(tchek​Scan​Id:​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

on​Buy​Back​Flow​Error(error:​)

func onBuyBackFlowError(error: TchekThirdPartyError) 

Method called when error occurs on the Buy Back Flow

  • Parameters

  • error TchekThirdPartyError enum