GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeStoryPlayerButtonStyle - iOS

The BlazeStoryPlayerButtonStyle struct represents the configuration for a story button within a Blaze story player item.

Properties

width

var width: CGFloat

The width of the button.

height

var height: CGFloat

The height of the button.

color

var color: UIColor

The tint color of the button.

isVisible

var isVisible: Bool

Indicates whether the button is visible.

Setting this to false hides the button.

Example: show/hide buttons

Use isVisible on each built-in button inside BlazeStoryPlayerButtonsStyle.

var style = BlazeStoryPlayerStyle.base()

// Show Captions, hide More
style.buttons.captions.isVisible = true
style.buttons.more.isVisible = false

isVisibleForAds

var isVisibleForAds: Bool

Indicates whether the button is visible for ads

contentHorizontalAlignment

var contentHorizontalAlignment: UIControl.ContentHorizontalAlignment

Horizontal content alignment of the button.

contentVerticalAlignment

var contentVerticalAlignment: UIControl.ContentVerticalAlignment

Vertical content alignment of the button.

customImage

var customImage: BlazeStoryPlayerButtonCustomImageStates?

Custom image for the button.


Did this page help you?