BlazeMomentsPlayerCtaStyle - React Native
The BlazeMomentsPlayerCtaStyle class represents the style configuration for the Call to Action (CTA) buttons in a moment.
Properties
cornerRadius
cornerRadius?: numberThe corner radius of the CTA buttons.
textSize
textSize?: numberThe size of the CTA text.
font
font?: BlazeFontThe BlazeFont instance of the CTA text font.
width
width?: numberThe width of the CTA.
If not given (i.e., null), width of the CTA will act as match_parent.
The default value is null.
height
height?: numberThe height of the CTA.
If not given (i.e., null), height of the CTA will act as wrap_content.
The default value is null.
icon
icon?: BlazeMomentsCtaIconThe icon inside the CTA.
Read more here.
layoutPositioning
layoutPositioning?: BlazeMomentsPlayerCTAPositioningThe layout positioning of the CTA.
Read more here.
horizontalAlignment
horizontalAlignment?: BlazeMomentsPlayerCTAHorizontalAlignmentThe horizontal alignment of the CTA.
Read more here.
borderColor
borderColor?: stringThe fallback border color of the CTA, as a hex string.
It applies only when the CTA coming from the CMS has no border color of its own — the CMS value always wins when present.
borderWidth
borderWidth?: numberThe fallback border width of the CTA, in points on iOS and dp on Android.
It applies only when the CTA coming from the CMS has no border width — the CMS value always wins when present.
When neither the CMS nor this style supplies a border, the CTA is drawn without one.
Initialization
interface BlazeMomentsPlayerCtaStyle {
cornerRadius?: number;
textSize?: number;
font?: BlazeFont;
width?: number;
height?: number;
layoutPositioning?: BlazeMomentsPlayerCTAPositioning;
horizontalAlignment?: BlazeMomentsPlayerCTAHorizontalAlignment;
icon?: BlazeMomentsPlayerCtaIconStyle
borderColor?: string;
borderWidth?: number;
}Updated 11 days ago
