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)
@NonNull ScanditIconBuilder withIcon(ScanditIconType iconType)
Added in version 7.1.0
Sets the icon.
- withIconColor(iconColor)
@NonNull ScanditIconBuilder withIconColor(@Nullable Integer iconColor)
Added in version 7.1.0
Sets the color of the icon.
- withBackgroundColor(backgroundColor)
@NonNull ScanditIconBuilder withBackgroundColor(@Nullable Integer backgroundColor)
Added in version 7.1.0
Sets the color applied to the icon’s background.
- withBackgroundStrokeColor(backgroundStrokeColor)
@NonNull ScanditIconBuilder withBackgroundStrokeColor( @Nullable Integer backgroundStrokeColor)
Added in version 7.1.0
Sets the color of the stroke applied to the icon’s background.
- withBackgroundStrokeWidth(backgroundStrokeWidth)
@NonNull ScanditIconBuilder withBackgroundStrokeWidth(
float
backgroundStrokeWidth)Added in version 7.1.0
Sets the width of the stroke applied to the icon’s background.
- withBackgroundShape(backgroundShape)
@NonNull ScanditIconBuilder withBackgroundShape(ScanditIconShape backgroundShape)
Added in version 7.1.0
Sets the icon’s background shape.
- build()
@NonNull ScanditIcon build()
Added in version 7.1.0
Constructs a ScanditIcon with the properties set on the builder.