BlazePlayerButtonStyle
The BlazeStoryPlayerButtonStyle class represents the configuration for a story button.
Properties
width
width?: numberThe width of the button.
height
height?: numberThe height of the button.
color
color?: string // HexThe tint color of the button.
isVisible
isVisible?: booleanIndicates whether the button is visible.
image
customImage?: BlazePlayerItemButtonImageStatesCustom image for the button states.
isVisibleForAds
isVisibleForAds: booleanIndicates whether the button is visible for ads.
scaleType
scaleType?: BlazeScaleTypeIndicates the image BlazeScaleType
Note, thescaleTypeprop 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
| Parameter | mute | exit | share |
|---|---|---|---|
| width | 48 | 48 | 48 |
| height | 48 | 48 | 48 |
| color | WHITE | WHITE | WHITE |
| isVisible | true | true | true |
| scaleType | BlazeScaleType.FIT_XY | BlazeScaleType.FIT_XY | BlazeScaleType.FIT_XY |
Updated about 2 months ago
Did this page help you?
