TchekSDK Documentation

Class Tchek​Report​Builder

public class TchekReportBuilder  

The builder used for customizing the features of Report

Usage:

let builder = TchekReportBuilder(tchekId: "any-tchek-id", delegate: self) { builder in
builder.bg = .purple
builder.navBarBg = .purple
builder.navBarText = .white
...
}

Initializers

init(tchek​Id:​delegate:​ui:​)

public init(tchekId: String,
				delegate: TchekReportDelegate,
				ui: ((TchekReportBuilder) -> Void)? = nil)  

Primary constructor

Parameters

tchek​Id String

Id of the Tchek concerned by the report to display

delegate Tchek​Report​Delegate

Delegate that will be notified of events from the Report screen

ui ((Tchek​Report​Builder) -> Void)?

Lambda to easily set-up the builder

Properties

bg

public var bg: UIColor

The background color

nav​Bar​Bg

public var navBarBg: UIColor

The navigation bar color

nav​Bar​Text

public var navBarText: UIColor

The navigation bar text color

report​Text

public var reportText: UIColor

The main text color

btn​Prev​Text

public var btnPrevText: UIColor

The button text color of previous button on Report

btn​Prev

public var btnPrev: UIColor

The button color of previous button on Report

btn​Next​Text

public var btnNextText: UIColor

The button text color of next button on Report

btn​Next

public var btnNext: UIColor

The button color of next button on Report

paging​Bg

public var pagingBg: UIColor

The bg color of the paging slider

paging​Text

public var pagingText: UIColor

The text color of the paging slider

paging​Text​Selected

public var pagingTextSelected: UIColor

The text color of the paging slider on selected

paging​Indicator

public var pagingIndicator: UIColor

The indicatior color of the paging slider on selected

text​Field​Placeholder​Text

public var textFieldPlaceholderText: UIColor

The text field place holder text color

text​Field​Placeholder​Text​Selected

public var textFieldPlaceholderTextSelected: UIColor

The text field place holder text color

text​Field​Underline

public var textFieldUnderline: UIColor

The text field border color

text​Field​Underline​Selected

public var textFieldUnderlineSelected: UIColor

The text field border color

text​Field​Text

public var textFieldText: UIColor

The text field text color

damage​Cell​Border

public var damageCellBorder: UIColor

The damage cell border color

damage​Cell​Text

public var damageCellText: UIColor

The damage cell text color

vehicle​Pattern​Stroke

public var vehiclePatternStroke: UIColor

The stroke color of vehicle pattern

vehicle​Pattern​Damage​Fill

public var vehiclePatternDamageFill: UIColor

The fill color of damage on vehicle pattern

vehicle​Pattern​Old​Damage​Fill

public var vehiclePatternOldDamageFill: UIColor

The fill color of old damage on vehicle pattern

vehicle​Pattern​Damage​Stroke

public var vehiclePatternDamageStroke: UIColor

The stroke color of damage on vehicle pattern

damage​Type

public var damageType: UIColor

The background color of damage type

damage​Type​Text

public var damageTypeText: UIColor

The text color of damage type

damage​Location

public var damageLocation: UIColor

The background color of damage location

damage​Location​Text

public var damageLocationText: UIColor

The text color of damage location

damage​Date

public var damageDate: UIColor

The background color of damage date

damage​Date​Text

public var damageDateText: UIColor

The text color of damage date

damage​New

public var damageNew: UIColor

The background color of damage tag "new"

damage​New​Text

public var damageNewText: UIColor

The text color of damage tag "new"

damage​Old

public var damageOld: UIColor

The background color of damage tag "old"

damage​Old​Text

public var damageOldText: UIColor

The text color of damage tag "old"

btn​Validate​Signature

public var btnValidateSignature: UIColor

The button color of Validate signature

btn​Validate​Signature​Text

public var btnValidateSignatureText: UIColor

The text button color of Validate signature

new​Damage​Btn​Date​Border

public var newDamageBtnDateBorder: UIColor

The border button color of The date button on new damage

new​Damage​Section​Text

public var newDamageSectionText: UIColor

The new damage cell: Section text color

new​Damage​Cell​Text

public var newDamageCellText: UIColor

The new damage cell: Cell text color

new​Damage​Old​Compare​Button

public var newDamageOldCompareButton: UIColor

The new damage compare old Tchek: Button color

new​Damage​Old​Compare​Button​Text

public var newDamageOldCompareButtonText: UIColor

The new damage compare old Tchek: Button text color

new​Damage​Old​Cancel​Button

public var newDamageOldCancelButton: UIColor

The new damage compare old Tchek: Button border and text color

new​Damage​Old​Title

public var newDamageOldTitle: UIColor

The new damage compare old Tchek: Title color

new​Damage​Old​Text

public var newDamageOldText: UIColor

The new damage compare old Tchek: Text color

repair​Cost​Cell​Cost​Bg

public var repairCostCellCostBg: UIColor

The repair cost cell: Cost bg color

repair​Cost​Cell​Cost​Text

public var repairCostCellCostText: UIColor

The repair cost cell: Cost text color

repair​Cost​Cell​Text

public var repairCostCellText: UIColor

The repair cost cell: Text color

repair​Cost​Cell​Circle​Damage​Count​Bg

public var repairCostCellCircleDamageCountBg: UIColor

The repair cost cell: Circle damage count bg color

repair​Cost​Cell​Circle​Damage​Count​Text

public var repairCostCellCircleDamageCountText: UIColor

The repair cost cell: Circle damage count text color

repair​Cost​Btn​Cost​Settings​Text

public var repairCostBtnCostSettingsText: UIColor
  • The button text color of previous button on Report

repair​Cost​Btn​Cost​Settings

public var repairCostBtnCostSettings: UIColor
  • The button color of next button on Report

repair​Cost​Settings​Text

public var repairCostSettingsText: UIColor
  • The button color of next button on Report

btn​Validate​Repair​Cost​Edit

public var btnValidateRepairCostEdit: UIColor

The button color of edit cost

btn​Validate​Repair​Cost​Edit​Text

public var btnValidateRepairCostEditText: UIColor

The text button color of edit cost

extra​Damage​Bg

public var extraDamageBg: UIColor

The extra damage bg color

btn​Add​Extra​Damage​Bg

public var btnAddExtraDamageBg: UIColor

The button background color of add extra damage

btn​Add​Extra​Damage​BgPressed

public var btnAddExtraDamageBgPressed: UIColor

The button background color of add extra damage on pressed state

btn​Add​Extra​Damage​Plus​Icon

public var btnAddExtraDamagePlusIcon: UIColor

The button icon color of add extra damage

btn​Validate​Extra​Damage

public var btnValidateExtraDamage: UIColor

The button color of Validate extra damage

btn​Validate​Extra​Damage​Text

public var btnValidateExtraDamageText: UIColor

The text button color of Validate extra damage

btn​Delete​Extra​Damage

public var btnDeleteExtraDamage: UIColor

The button color of Delete extra damage

btn​Delete​Extra​Damage​Text

public var btnDeleteExtraDamageText: UIColor

The text button color of Delete extra damage

btn​Edit​Damage

public var btnEditDamage: UIColor

The button color of Edit damage

btn​Edit​Damage​Text

public var btnEditDamageText: UIColor

The text button color of Edit damage

buy​Back​Section​Cell​Bg

public var buyBackSectionCellBg: UIColor

The background color of buy back section cell

buy​Back​Section​Cell​Text

public var buyBackSectionCellText: UIColor

The text color of buy back section cell

buy​Back​Cell​Bg

public var buyBackCellBg: UIColor

The background color of buy back cell

buy​Back​Cell​Text

public var buyBackCellText: UIColor

The text color of buy back cell

buy​Back​Checkbox​Button

public var buyBackCheckboxButton: UIColor

The checkbox button color of buy back cell

buy​Back​Checkbox​Button​Selected

public var buyBackCheckboxButtonSelected: UIColor

The checkbox button color of buy back cell on selected state

buy​Back​List​Separator

public var buyBackListSeparator: UIColor

The list separator color of buy back list