Scandit Icon Builder
Defined under the namespace Scandit.Datacapture.Core.Ui
- ScanditIconBuilder
class ScanditIconBuilderAdded in version 7.1.0
Use this object to construct instances of ScanditIcon.
- constructor()
constructor()Added in version 7.1.0
Creates a new instance of the builder.
- withIcon(icon)
withIcon(icon: ScanditIconType): ScanditIconBuilder
Added in version 7.1.0
Sets the icon.
- withIconColor(color)
withIconColor(color: Color): ScanditIconBuilder
Added in version 7.1.0
Sets the color of the icon.
- withBackgroundColor(color)
withBackgroundColor(color: Color): ScanditIconBuilder
Added in version 7.1.0
Sets the color applied to the icon’s background.
- withBackgroundStrokeColor(backgroundStrokeColor)
withBackgroundStrokeColor(backgroundStrokeColor: Color): 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.
- withIconSize(iconSize)
withIconSize(iconSize: number): ScanditIconBuilder
Added in version 7.5.0
Sets the size of internal icon.
- withWidth(width)
withWidth(width: number): ScanditIconBuilder
Added in version 7.5.0
Sets the width of the icon background shape.
- withHeight(height)
withHeight(height: number): ScanditIconBuilder
Added in version 7.5.0
Sets the height of the icon background shape.
- build()
build(): Promise<ScanditIcon>
Added in version 7.1.0
Constructs a ScanditIcon with the properties set on the builder.