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: IntThe background color of the follow chip button.
iconColor
@ColorInt var iconColor: IntThe 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: BlazeMomentsPlayerFollowEntityIconSourceThe 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.STARNote: 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.
| Value | Description |
|---|---|
| ICON | Display an icon in the follow chip. Can be used for a more compact representation. |
| TEXT | Display 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.
| Value | Description |
|---|---|
| DEFAULT | A + in the unfollowed state and a checkmark in the followed state. |
| STAR | An outlined star in the unfollowed state and a filled star in the followed state. |
Updated 14 days ago
