public class BadgeFormatBuilder extends Object
BadgeFormat instances| Constructor and Description |
|---|
BadgeFormatBuilder(String message)
It is recommended to use this builder to
create
BadgeFormat instances. |
| Modifier and Type | Method and Description |
|---|---|
BadgeFormat |
build() |
BadgeFormatBuilder |
withLabel(String label) |
BadgeFormatBuilder |
withLabelColor(HexColor labelColor) |
BadgeFormatBuilder |
withLogo(String logo)
The logo, must be SVG converted with Base64 encoding.
E.g.: data:image/svg+xml;base64,PHN2b... |
BadgeFormatBuilder |
withMessageColor(HexColor messageColor) |
BadgeFormatBuilder |
withScaleMultiplier(int scaleMultiplier) |
public BadgeFormatBuilder(String message)
BadgeFormat instances.message - the badge messagepublic BadgeFormatBuilder withLabel(String label)
label - the badge labelpublic BadgeFormatBuilder withLabelColor(HexColor labelColor)
labelColor - the badge label's colorpublic BadgeFormatBuilder withMessageColor(HexColor messageColor)
messageColor - the badge message colorpublic BadgeFormatBuilder withLogo(String logo)
logo - the badge logopublic BadgeFormatBuilder withScaleMultiplier(int scaleMultiplier)
scaleMultiplier - the scale multiplier to be applied to the badge, eg. 2 = 2x the original size.
It must be within BadgeFormat.SCALE_MULTI_LOWER_BOUND and BadgeFormat.SCALE_MULTI_UPPER_BOUND.public BadgeFormat build()
BadgeFormatCopyright © 2023. All rights reserved.