Scandit Icon Builder
Defined under the namespace Scandit.Datacapture.Core.Ui
- ScanditIconBuilder
class ScanditIconBuilder
Added in version 7.1.0
Use this object to construct instances of ScanditIcon.
- withIcon(iconType)
withIcon(iconType: ScanditIconType | null): ScanditIconBuilder
Added in version 7.1.0
Sets the icon.
- withIconColor(iconColor)
withIconColor(iconColor: Color | null): ScanditIconBuilder
Added in version 7.1.0
Sets the color of the icon.
- withBackgroundColor(backgroundColor)
withBackgroundColor(backgroundColor: Color | null): ScanditIconBuilder
Added in version 7.1.0
Sets the color applied to the icon’s background.
- withBackgroundStrokeColor(backgroundStrokeColor)
withBackgroundStrokeColor(backgroundStrokeColor: Color | null): ScanditIconBuilder
Added in version 7.1.0
Sets the color of the stroke applied to the icon’s background.
- withBackgroundStrokeWidth(backgroundStrokeWidth)
withBackgroundStrokeWidth(backgroundStrokeWidth: number): ScanditIconBuilder
Added in version 7.1.0
Sets the width of the stroke applied to the icon’s background.
- withBackgroundShape(backgroundShape)
withBackgroundShape(backgroundShape: ScanditIconShape | null): ScanditIconBuilder
Added in version 7.1.0
Sets the icon’s background shape.
- build()
build(): ScanditIcon
Added in version 7.1.0
Constructs a ScanditIcon with the properties set on the builder.