-
- All Implemented Interfaces:
-
com.batch.android.messaging.model.cep.InAppComponent.Column,com.batch.android.messaging.model.cep.InAppComponent.FontDecorationComponent,java.io.Serializable
public final class InAppComponent.Text extends InAppComponent implements InAppComponent.FontDecorationComponent, InAppComponent.Column, Serializable
Represents a text component within an in-app message.
This class defines the properties and styling options for a text element. It inherits from InAppComponent and implements the Column interface, indicating that it's a component and can be part of a column layout.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final InAppProperty.ThemeColorscolorprivate final InAppProperty.Marginmarginsprivate final InAppProperty.HorizontalAlignmenttextAlignmentprivate final Set<InAppProperty.FontDecoration>fontDecorationsprivate final IntegerfontSizeprivate final IntegermaxLinesprivate final InAppComponent.Typetypeprivate final Integertypeface
-
Constructor Summary
Constructors Constructor Description InAppComponent.Text(String id, InAppProperty.ThemeColors color, InAppProperty.Margin margins, InAppProperty.HorizontalAlignment textAlignment, Set<InAppProperty.FontDecoration> fontDecorations, Integer fontSize, Integer maxLines)
-
Method Summary
Modifier and Type Method Description final StringgetId()final InAppProperty.ThemeColorsgetColor()final InAppProperty.MargingetMargins()final InAppProperty.HorizontalAlignmentgetTextAlignment()Set<InAppProperty.FontDecoration>getFontDecorations()final IntegergetFontSize()final IntegergetMaxLines()final InAppComponent.TypegetType()IntegergetTypeface()-
-
Constructor Detail
-
InAppComponent.Text
InAppComponent.Text(String id, InAppProperty.ThemeColors color, InAppProperty.Margin margins, InAppProperty.HorizontalAlignment textAlignment, Set<InAppProperty.FontDecoration> fontDecorations, Integer fontSize, Integer maxLines)
-
-
Method Detail
-
getColor
final InAppProperty.ThemeColors getColor()
-
getMargins
final InAppProperty.Margin getMargins()
-
getTextAlignment
final InAppProperty.HorizontalAlignment getTextAlignment()
-
getFontDecorations
Set<InAppProperty.FontDecoration> getFontDecorations()
-
getFontSize
final Integer getFontSize()
-
getMaxLines
final Integer getMaxLines()
-
getType
final InAppComponent.Type getType()
-
getTypeface
Integer getTypeface()
-
-
-
-