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

glassBackground

glassBackground?: BlazeGlassBackgroundState

Controls whether the button renders a Liquid Glass background on iOS 26 and later. It applies to Moments, Story, and Videos player buttons, including Moments and Story custom action buttons, and overrides the global BlazeSDK.setLiquidGlassEnabled(enabled) setting (off by default) for this button. Read more here.

Defaults:

  • Moments: 'automatic' for share, like, captions, seekForward, and seekBackward; 'off' for every other button and for custom action buttons.
  • Stories: 'off' for every button, so the global setting alone does not add glass to Story buttons. Set 'on' on the button instead.
  • Videos: 'automatic' for playPause, previous, next, seekForward, and seekBackward; 'off' for every other button.
📘

Note, the glassBackground prop is for use on iOS only. On Android it has no effect.

BlazeGlassBackgroundState

On iOS versions earlier than 26, no glass renders, whatever the value.

ValueDescription
'automatic'Follows BlazeSDK.setLiquidGlassEnabled for elements that already carry a translucent background by default.
'on'Renders glass regardless of the global setting.
'off'Never renders glass.

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;
  glassBackground?: BlazeGlassBackgroundState;
}

Default buttons Styles

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

Did this page help you?