-
public class InAppComponent.FontDecorationComponent.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private TypefacetypefaceOverrideprivate TypefaceboldTypefaceOverridepublic final static InAppComponent.FontDecorationComponent.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitsetCustomTypeface(TextView textView, InAppComponent.FontDecorationComponent component)Sets the custom typeface for the text view based on the font decoration component. final TypefacegetTypefaceOverride()Typeface override for the text view. final UnitsetTypefaceOverride(Typeface typefaceOverride)Typeface override for the text view. final TypefacegetBoldTypefaceOverride()Typeface override for the text view when the text is bold. final UnitsetBoldTypefaceOverride(Typeface boldTypefaceOverride)Typeface override for the text view when the text is bold. -
-
Method Detail
-
setCustomTypeface
final Unit setCustomTypeface(TextView textView, InAppComponent.FontDecorationComponent component)
Sets the custom typeface for the text view based on the font decoration component.
- Parameters:
textView- The text view to apply the typeface to.component- The font decoration component containing the typeface information.
-
getTypefaceOverride
final Typeface getTypefaceOverride()
Typeface override for the text view.
-
setTypefaceOverride
final Unit setTypefaceOverride(Typeface typefaceOverride)
Typeface override for the text view.
-
getBoldTypefaceOverride
final Typeface getBoldTypefaceOverride()
Typeface override for the text view when the text is bold.
-
setBoldTypefaceOverride
final Unit setBoldTypefaceOverride(Typeface boldTypefaceOverride)
Typeface override for the text view when the text is bold.
-
-
-
-