TchekSDK Documentation

Class Tchek​Shoot​Inspect​Builder

public class TchekShootInspectBuilder  

The builder used for customizing the features of Shoot/Inspect

Usage:

let builder = TchekShootInspectBuilder(delegate: delegate) { builder in
builder.thumbBg = .brown
builder.thumbBorder = .blue
builder.thumbBorderBadImage = .orange
builder.thumbBorderGoodImage = .green
builder.thumbDot = .cyan
builder.thumbBorderThickness = 0
builder.thumbCorner = 0
 
builder.btnTuto = .yellow
builder.btnTutoText = .cyan
builder.tutoPageIndicatorDot = .darkGray
builder.tutoPageIndicatorDotSelected = .blue
 
builder.carOverlayGuide = .systemPink
 
builder.btnRetake = .yellow
builder.btnRetakeText = .cyan
 
builder.previewBg = .orange
 
builder.btnEndNext = .yellow
builder.btnEndNextText = .cyan
 
builder.endBg = .black
builder.endNavBarBg = .purple
builder.endNavBarText = .red
}

Initializers

init(delegate:​show​Cancel​Button:​immatriculation:​ui:​)

public init(delegate: TchekShootInspectDelegate,
				showCancelButton: Bool = true,
				immatriculation: String? = nil,
				ui: ((TchekShootInspectBuilder) -> Void)? = nil)  

Primary constructor

Parameters

delegate Tchek​Shoot​Inspect​Delegate

Delegate that will be notified of events from the Shoot/Inspect flow

show​Cancel​Button Bool

Display the cancel button on camera. The button pop the Shoot Inspect

immatriculation String?

Immatriculation of the vehicle to match with the tchek Id

ui ((Tchek​Shoot​Inspect​Builder) -> Void)?

Lambda to easily set-up the builder

Properties

thumb​Bg

public var thumbBg: UIColor

The thumb background color

thumb​Border

public var thumbBorder: UIColor

The thumb image border color

thumb​Border​Bad​Image

public var thumbBorderBadImage: UIColor

The thumb image border color when the photo is bad. Bad quality, not a car...

thumb​Border​Good​Image

public var thumbBorderGoodImage: UIColor

The thumb image border color when the photo is good

thumb​Dot

public var thumbDot: UIColor

The thumb dot color that indicate which photo is in progress

thumb​Border​Thickness

public var thumbBorderThickness: CGFloat  

The thumb image border color thickness.

thumb​Corner

public var thumbCorner: CGFloat

The thumb image corner radius

btn​Tuto

public var btnTuto: UIColor

The button color of Tutorial

btn​Tuto​Text

public var btnTutoText: UIColor

The text button color of Tutorial

tuto​Page​Indicator​Dot

public var tutoPageIndicatorDot: UIColor

The page control indicator color

tuto​Page​Indicator​Dot​Selected

public var tutoPageIndicatorDotSelected: UIColor

The page control indicator selected color

car​Overlay​Guide

public var carOverlayGuide: UIColor

The car overlay guide color

btn​Retake

public var btnRetake: UIColor

The button color of Retake photo available in Preview

btn​Retake​Text

public var btnRetakeText: UIColor

The button color of Retake photo available in Preview

preview​Bg

public var previewBg: UIColor

The background color of the photo Preview

end​Bg

public var endBg: UIColor

The background color of Shoot Inspect End

end​Nav​Bar​Bg

public var endNavBarBg: UIColor

The navigation bar color of Shoot Inspect End

end​Nav​Bar​Text

public var endNavBarText: UIColor

The navigation bar text color of Shoot Inspect End

end​Text

public var endText: UIColor

The main text color of Shoot Inspect End

btn​End​Next

public var btnEndNext: UIColor

The button color of button on Shoot Inspect End

btn​End​Next​Text

public var btnEndNextText: UIColor

The text button color of button on Shoot Inspect End

btn​Skip

public var btnSkip: UIColor

The skip button color

btn​Skip​Selected

public var btnSkipSelected: UIColor

The skip button color on selected state

btn​Skip​Stroke

public var btnSkipStroke: UIColor

The skip button stroke color

btn​Skip​Text

public var btnSkipText: UIColor

The skip button text color

btn​Skip​Text​Selected

public var btnSkipTextSelected: UIColor

The skip button text color on selected state