Scandit Icon Builder

Defined in package com.scandit.datacapture.core.ui

ScanditIconBuilder
class ScanditIconBuilder

Added in version 7.1.0

Use this object to construct instances of ScanditIcon.

ScanditIconBuilder()
ScanditIconBuilder()

Added in version 7.1.0

Creates a new instance of the builder.

withIcon(iconType)
fun withIcon(iconType: ScanditIconType?): ScanditIconBuilder

Added in version 7.1.0

Sets the icon.

withIconColor(iconColor)
fun withIconColor(iconColor: Int?): ScanditIconBuilder

Added in version 7.1.0

Sets the color of the icon.

withBackgroundColor(backgroundColor)
fun withBackgroundColor(backgroundColor: Int?): ScanditIconBuilder

Added in version 7.1.0

Sets the color applied to the icon’s background.

withBackgroundStrokeColor(backgroundStrokeColor)
fun withBackgroundStrokeColor(backgroundStrokeColor: Int?): ScanditIconBuilder

Added in version 7.1.0

Sets the color of the stroke applied to the icon’s background.

withBackgroundStrokeWidth(backgroundStrokeWidth)
fun withBackgroundStrokeWidth(backgroundStrokeWidth: Float): ScanditIconBuilder

Added in version 7.1.0

Sets the width of the stroke applied to the icon’s background.

withBackgroundShape(backgroundShape)
fun withBackgroundShape(backgroundShape: ScanditIconShape?): ScanditIconBuilder

Added in version 7.1.0

Sets the icon’s background shape.

build()
fun build(): ScanditIcon

Added in version 7.1.0

Constructs a ScanditIcon with the properties set on the builder.