GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeMomentsPlayerFollowEntityChipStyle

The BlazeMomentsPlayerFollowEntityChipStyle class represents the style configuration for the follow chip button in both followed and unfollowed states. This style provides flexibility for different states, supporting both icon and text content sources to accommodate different design preferences and use cases.

Properties

backgroundColor

@ColorInt var backgroundColor: Int

The background color of the follow chip button.

iconColor

@ColorInt var iconColor: Int

The color applied to the icon or text content within the chip.

contentSource

var contentSource: BlazeMomentsPlayerFollowEntityChipContentSource,

The content source for the chip. Can be either ICON or TEXT based on design requirements.

iconSource

var iconSource: BlazeMomentsPlayerFollowEntityIconSource

The built-in icon shown while the chip shows an icon. Each state has its own setting, so set it on both followState.chip and unfollowState.chip. Defaults to DEFAULT. The icon takes the chip's iconColor.

val momentsPlayerStyle = BlazeMomentsPlayerStyle.base()
momentsPlayerStyle.followEntity.unfollowState.chip.iconSource =
    BlazeMomentsPlayerFollowEntityChipStyle.BlazeMomentsPlayerFollowEntityIconSource.STAR
momentsPlayerStyle.followEntity.followState.chip.iconSource =
    BlazeMomentsPlayerFollowEntityChipStyle.BlazeMomentsPlayerFollowEntityIconSource.STAR

Note: Has no effect while the unfollowed chip shows text (contentSource set to TEXT). Setting only one state mixes icons, for example a + before following and a filled star after.

BlazeMomentsPlayerFollowEntityChipContentSource

Defines the content source options for the follow entity chip.

ValueDescription
ICONDisplay an icon in the follow chip. Can be used for a more compact representation.
TEXTDisplay text in the follow chip. Typically shows "Follow" text for clear user action indication. Note: This configuration is only effective in the unfollowed state. If TEXT is chosen for the followed state, ICON will be used instead to maintain consistent visual representation for followed entities.

BlazeMomentsPlayerFollowEntityIconSource

Defines the built-in icon options for the follow entity chip. Only used while the chip shows an icon.

ValueDescription
DEFAULTA + in the unfollowed state and a checkmark in the followed state.
STARAn outlined star in the unfollowed state and a filled star in the followed state.


Did this page help you?