Builder

class Builder

Constructors

Link copied to clipboard
fun Builder()

Constructor

Link copied to clipboard
fun Builder(context: Context, @StyleRes textAppearanceRes: Int)

Constructor

Functions

Link copied to clipboard
fun build(): TextUIConfig

Builds an TextUIConfig with the properties supplied to this builder.

Link copied to clipboard
fun setCustomFontRes(@FontRes customFontRes: Int): TextUIConfig.Builder

Sets the custom font resource id of text

Link copied to clipboard
fun setFamilyName(familyName: String?): TextUIConfig.Builder

Sets the typeface family name of text

Link copied to clipboard
fun setTextBackgroundColor(@ColorInt textBackgroundColor: Int): TextUIConfig.Builder

Sets the background color of text

Link copied to clipboard
fun setTextColor(@ColorInt textColor: Int): TextUIConfig.Builder

Sets the color of text

Link copied to clipboard
fun setTextSize(textSize: Int): TextUIConfig.Builder

Sets the size of text

Link copied to clipboard
fun setTextStyle(textStyle: Int): TextUIConfig.Builder

Sets a value of android.graphics.Typeface.