GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazePlayerButtonStyle

The BlazeStoryPlayerButtonStyle class represents the configuration for a story button.

Properties

width

width?: number

The width of the button.

height

height?: number

The height of the button.

color

color?: string // Hex

The tint color of the button.

isVisible

isVisible?: boolean

Indicates whether the button is visible.

image

customImage?: BlazePlayerItemButtonImageStates

Custom image for the button states.

isVisibleForAds

isVisibleForAds: boolean

Indicates whether the button is visible for ads.

scaleType

scaleType?: BlazeScaleType

Indicates the image BlazeScaleType

📘

Note, the scaleType prop is for use on Android only,

in iOS center in default

Initialization

The BlazeStoryButton can be initialized with custom values for its properties or with the default values:

interface BlazePlayerButtonStyle {
  width?: number;
  height?: number;
  color?: string;
  isVisible?: boolean;
  scaleType?: BlazeButtonScaleType;
  isVisibleForAds?: boolean;
  customImage?: BlazePlayerItemButtonImageStates;
}

Default buttons Styles

Parametermuteexitshare
width484848
height484848
colorWHITEWHITEWHITE
isVisibletruetruetrue
scaleTypeBlazeScaleType.FIT_XYBlazeScaleType.FIT_XYBlazeScaleType.FIT_XY

Did this page help you?