GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeMomentsPlayerStyle - Android

The BlazeMomentsPlayerStyle class represents the style configuration for moments.

Properties

headingText

var headingText: BlazeMomentsPlayerHeadingTextStyle

The heading text style for the moment.

bodyText

var bodyText: BlazeMomentsPlayerBodyTextStyle

The body text style for the moment.

buttons

var buttons: BlazeMomentsPlayerButtonsStyle

The buttons style for the moments.

Seek Controls

Note: Seek buttons are only visible when the content duration is 20 seconds or longer. For shorter content, the buttons are automatically hidden regardless of their visibility setting. Each press seeks by 10 seconds. Seek buttons are hidden during ad playback (isVisibleForAds defaults to false).

seekForward - Skip forward 10 seconds

momentsPlayerStyle.buttons.seekForward.isVisible = true

seekBackward - Skip backward 10 seconds

momentsPlayerStyle.buttons.seekBackward.isVisible = true

chips

var chips: BlazeMomentsPlayerChipsStyle

The chips style for the moments.

backgroundColor

var backgroundColor: Int

The background color of the moments player's view.

cta

var cta: BlazeMomentsPlayerCtaStyle

The CTA (Call to Action) button style for the moments.

headerGradient

var headerGradient: BlazeMomentsPlayerHeaderGradientStyle

The gradient style for the header moments view.

footerGradient

var footerGradient: BlazeMomentsPlayerFooterGradientStyle

The gradient style for the footer moments view.

firstTimeSlide

var firstTimeSlide: BlazeMomentsPlayerFirstTimeSlideStyle

The style configuration for the first-time slide screen.

seekBar

var seekBar: BlazeMomentsPlayerSeekBarStyle

The seek bar style configuration for the moments player.

bottomComponentsAlignment

var bottomComponentsAlignment: BlazeBottomComponentsAlignment

Defining the positioning style of a CTA and the other footer elements inside the player.

playerDisplayMode

var playerDisplayMode: BlazePlayerDisplayMode

Defining the display mode of the player.

Read more here.

tabsConfigurations

var tabsConfigurations: BlazeMomentsTabsConfigurations

The configurations for the tabs in the moments player.

followEntity

var followEntity: BlazeMomentsPlayerFollowEntityStyle

The Follow Entities style in the moments player

captions

var captions: BlazeCaptionsStyle

The closed captions style configuration for the moments player. See BlazeCaptionsStyle.

BlazeBottomComponentsAlignment

ValueDescription
RELATIVE_TO_CONTAINERIndicates that the CTA and the rest of the elements will be placed relative to the screen's bottom anchor.
RELATIVE_TO_PLAYERIndicates that the CTA and the rest of the elements will be placed relative to the player's bottom anchor.
FIT_CTA_BELOW_PLAYERIndicates that the CTA will try to fit in the space between the player and the bottom of the screen. If there's no space it will fallback to RELATIVE_TO_PLAYER. In both cases the rest of the elements will be placed relative to the player's bottom anchor.

BlazePlayerDisplayMode

ValueDescription
FIXED_RATIO_9_16Maintains the video's original 9:16 aspect ratio, fitting it within the container.
This may result in letterboxing if the container's aspect ratio differs.
RESIZE_ASPECT_FILL_CENTER_CROPExpands the video to cover the entire container, cropping excess content as necessary to maintain the aspect ratio, centered within the container.

Did this page help you?