-
- 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.Button extends InAppComponent implements InAppComponent.FontDecorationComponent, InAppComponent.Column, Serializable
Represents a button component within an in-app message.
This class defines the properties and styling options for a button 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.ThemeColorsbackgroundColorprivate final InAppProperty.ThemeColorstextColorprivate final InAppProperty.Marginmarginsprivate final InAppProperty.Marginpaddingsprivate final InAppProperty.Sizewidthprivate final InAppProperty.HorizontalAlignmentalignprivate final InAppProperty.CornerRadiusradiusprivate final InAppProperty.Borderborderprivate final InAppProperty.HorizontalAlignmenttextAlignmentprivate final Set<InAppProperty.FontDecoration>fontDecorationsprivate final IntegerfontSizeprivate final IntegermaxLinesprivate final InAppComponent.Typetypeprivate final Integertypeface
-
Constructor Summary
Constructors Constructor Description InAppComponent.Button(String id, InAppProperty.ThemeColors backgroundColor, InAppProperty.ThemeColors textColor, InAppProperty.Margin margins, InAppProperty.Margin paddings, InAppProperty.Size width, InAppProperty.HorizontalAlignment align, InAppProperty.CornerRadius radius, InAppProperty.Border border, InAppProperty.HorizontalAlignment textAlignment, Set<InAppProperty.FontDecoration> fontDecorations, Integer fontSize, Integer maxLines)
-
Method Summary
Modifier and Type Method Description final StringgetId()final InAppProperty.ThemeColorsgetBackgroundColor()final InAppProperty.ThemeColorsgetTextColor()final InAppProperty.MargingetMargins()final InAppProperty.MargingetPaddings()final InAppProperty.SizegetWidth()final InAppProperty.HorizontalAlignmentgetAlign()final InAppProperty.CornerRadiusgetRadius()final InAppProperty.BordergetBorder()final InAppProperty.HorizontalAlignmentgetTextAlignment()Set<InAppProperty.FontDecoration>getFontDecorations()final IntegergetFontSize()final IntegergetMaxLines()final InAppComponent.TypegetType()IntegergetTypeface()-
-
Constructor Detail
-
InAppComponent.Button
InAppComponent.Button(String id, InAppProperty.ThemeColors backgroundColor, InAppProperty.ThemeColors textColor, InAppProperty.Margin margins, InAppProperty.Margin paddings, InAppProperty.Size width, InAppProperty.HorizontalAlignment align, InAppProperty.CornerRadius radius, InAppProperty.Border border, InAppProperty.HorizontalAlignment textAlignment, Set<InAppProperty.FontDecoration> fontDecorations, Integer fontSize, Integer maxLines)
-
-
Method Detail
-
getBackgroundColor
final InAppProperty.ThemeColors getBackgroundColor()
-
getTextColor
final InAppProperty.ThemeColors getTextColor()
-
getMargins
final InAppProperty.Margin getMargins()
-
getPaddings
final InAppProperty.Margin getPaddings()
-
getWidth
final InAppProperty.Size getWidth()
-
getAlign
final InAppProperty.HorizontalAlignment getAlign()
-
getRadius
final InAppProperty.CornerRadius getRadius()
-
getBorder
final InAppProperty.Border getBorder()
-
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()
-
-
-
-