GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeStoryPlayerButtonStyle - Android

The BlazeStoryPlayerButtonStyle class represents the configuration for a story button.

Properties

width

var width: BlazeDp

The width of the button.

height

var height: BlazeDp

The height of the button.

color

var color: Int

The tint color of the button.

isVisible

var isVisible: Boolean

Indicates whether the button is visible.

When falsfalse the button is hdden.

Example show/hide player buttons

// Start from the default Story style
val style = BlazeStoryPlayerStyle.base()

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

customImage

var PlayerItemButtonImageStates: BlazePlayerButtonCustomImageStates?

Custom image for the button.

isVisibleForAds

var isVisibleForAds: Boolean

Indicates whether the button is visible for ads.

scaleType

var scaleType: ScaleType

Indicates the image scale type, using Android's ScaleType enum.


Did this page help you?