GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeStoryPlayerCtaStyle - Android

The BlazeStoryPlayerCtaStyle class represents the style configuration for the Call to Action (CTA) button in a story.

Properties

cornerRadius

var cornerRadius: BlazeDp

The corner radius of the CTA button.

borderColor

@ColorInt var borderColor: Int

The SDK fallback border color of the CTA button, used when the backend/CMS provides no valid borderColor. Backend/CMS value takes priority when present and parseable. Defaults to Color.TRANSPARENT.

borderWidth

var borderWidth: BlazeDp

The SDK fallback border width of the CTA button in dp, used when the backend/CMS provides no borderWidth. Backend/CMS value takes priority when present. Defaults to 0.blazeDp.

textSize

var textSize: Float

The text size of the CTA button.

fontResId

@FontRes var fontResId: Int?

The font resource id to be use in the CTA buttons

icon

var icon: BlazeStorysPlayerCtaIconStyle?

The icon inside the CTA.

isVisible

var isVisible: Boolean

Whether the CTA should be visible.
When false, the CTA will be hidden even if it should be shown according to the content.
Only applies to non-ad playables.


Did this page help you?