BlazeMomentsPlayerButtonsStyle - Android
The BlazeMomentsPlayerButtonsStyle class represents the configuration for the moment buttons.
Properties
mute
var mute: BlazeMomentsPlayerButtonStyleThe mute button configuration.
exit
var exit: BlazeMomentsPlayerButtonStyleThe exit button configuration.
share
var share: BlazeMomentsPlayerButtonStyleThe share button configuration.
like
var like: BlazeMomentsPlayerButtonStyleThe like button configuration.
play
var play: BlazeMomentsPlayerButtonStyleThe play/pause button configuration.
captions
var captions: BlazeMomentsPlayerButtonStyleThe captions button configuration.
seekForward
var seekForward: BlazeMomentsPlayerButtonStyleThe seek forward button configuration.
seekBackward
var seekBackward: BlazeMomentsPlayerButtonStyleThe seek backward button configuration.
search
var search: BlazeMomentsPlayerButtonStyleThe search button configuration.
shouldPreserveLikesCountBelowThreshold
var shouldPreserveLikesCountBelowThreshold: BooleanControls 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.
| Value | Description | Values |
|---|---|---|
| Like | The like button and its likes count text | X |
| Share | The share Moment button | X |
| Captions | The show captions button | X |
| Custom | A custom button | val id: String |
Updated 11 days ago
