GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeMomentsPlayerButtonsStyle - Android

The BlazeMomentsPlayerButtonsStyle class represents the configuration for the moment buttons.

Properties

mute

var mute: BlazeMomentsPlayerButtonStyle

The mute button configuration.

exit

var exit: BlazeMomentsPlayerButtonStyle

The exit button configuration.

share

var share: BlazeMomentsPlayerButtonStyle

The share button configuration.

like

var like: BlazeMomentsPlayerButtonStyle

The like button configuration.

play

var play: BlazeMomentsPlayerButtonStyle

The play/pause button configuration.

captions

var captions: BlazeMomentsPlayerButtonStyle

The captions button configuration.

seekForward

var seekForward: BlazeMomentsPlayerButtonStyle

The seek forward button configuration.

seekBackward

var seekBackward: BlazeMomentsPlayerButtonStyle

The seek backward button configuration.

search

var search: BlazeMomentsPlayerButtonStyle

The search button configuration.

shouldPreserveLikesCountBelowThreshold

var shouldPreserveLikesCountBelowThreshold: Boolean

Controls whether the space below the like button is preserved when the likes count is hidden because it is below the display threshold.

When true, the likes count text view remains INVISIBLE and occupies its layout space, preventing the buttons from shifting. When false, the text view becomes GONE and the container collapses to the button height.

The display threshold for the likes count is configured server-side. Defaults to true.

Methods

getBottomStackCustomActionButtons

fun getBottomStackCustomActionButtons(): List<BlazeMomentsPlayerCustomActionButton>

Returns the current bottom stack custom action buttons.

setBottomStackCustomActionButtons

fun setBottomStackCustomActionButtons(customActionButtons: List<BlazeMomentsPlayerCustomActionButton>)

Assigning the given customActionButtons to be the bottom stack custom action buttons.

setBottomStackOrder

fun setBottomStackOrder(customOrder: List<BottomStackButtons>)

Updates the order of buttons in the bottom stack by the given customOrder, ensuring validation and preserving the relative positions of buttons that were not provided.

BottomStackButtons

The buttons that can be reordered in the bottom stack.

ValueDescriptionValues
LikeThe like button and its likes count textX
ShareThe share Moment buttonX
CaptionsThe show captions buttonX
CustomA custom buttonval id: String

Did this page help you?