BlazeStoryPlayerButtonStyle - iOS
The BlazeStoryPlayerButtonStyle struct represents the configuration for a story button within a Blaze story player item.
Properties
width
var width: CGFloatThe width of the button.
height
var height: CGFloatThe height of the button.
color
var color: UIColorThe tint color of the button.
isVisible
var isVisible: BoolIndicates 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 = falseisVisibleForAds
var isVisibleForAds: BoolIndicates whether the button is visible for ads
contentHorizontalAlignment
var contentHorizontalAlignment: UIControl.ContentHorizontalAlignmentHorizontal content alignment of the button.
contentVerticalAlignment
var contentVerticalAlignment: UIControl.ContentVerticalAlignmentVertical content alignment of the button.
customImage
var customImage: BlazeStoryPlayerButtonCustomImageStates?Custom image for the button.
Updated 11 days ago
Did this page help you?
