Builder

class Builder

Builder class of StorylyStoryGroupStyling

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): StorylyStoryGroupStyling

This function builds StorylyStoryGroupStyling with the current properties

setCustomGroupViewFactory
Link copied to clipboard

This function will allow you to add custom story group view

setIconBackgroundColor
Link copied to clipboard
fun setIconBackgroundColor(@ColorInt color: Int): StorylyStoryGroupStyling.Builder

This function allows you to change the background color of the story group icon which is shown to the user as skeleton view till the stories are loaded

setIconBorderAnimation
Link copied to clipboard

This function allows you to change the animation of the story group

setIconBorderColorNotSeen
Link copied to clipboard
fun setIconBorderColorNotSeen(colors: List<Int>): StorylyStoryGroupStyling.Builder

This function allows you to change the border color of the story group icons which are unwatched by the user.

setIconBorderColorSeen
Link copied to clipboard
fun setIconBorderColorSeen(colors: List<Int>): StorylyStoryGroupStyling.Builder

This function allows you to change the border color of the story group icons which are watched by the user.

setIconCornerRadius
Link copied to clipboard
fun setIconCornerRadius(radius: Int): StorylyStoryGroupStyling.Builder

This function allows you to change corner radius value of the story group icon. Have to set story group size attribute to StoryGroupSize.Custom for use this feature.

setIconHeight
Link copied to clipboard
fun setIconHeight(height: Int): StorylyStoryGroupStyling.Builder

This function allows you to change height of the story group icon. Have to set story group size attribute to StoryGroupSize.Custom for use this feature.

setIconThematicImageLabel
Link copied to clipboard
fun setIconThematicImageLabel(label: String?): StorylyStoryGroupStyling.Builder

This function allows you to use different story groups images for different labels

setIconWidth
Link copied to clipboard
fun setIconWidth(width: Int): StorylyStoryGroupStyling.Builder

This function allows you to change width of the story group icon. Have to set story group size attribute to StoryGroupSize.Custom for use this feature.

setPinIconColor
Link copied to clipboard
fun setPinIconColor(@ColorInt color: Int): StorylyStoryGroupStyling.Builder

If any of the story group is selected as pinned group from dashboard, a little star icon will appear along with the story group icon. This function allows you to change the background color of this pin icon

setSize
Link copied to clipboard
fun setSize(size: StoryGroupSize): StorylyStoryGroupStyling.Builder

This function allows you to change the size of the story group

setTitleLineCount
Link copied to clipboard
fun setTitleLineCount(count: Int?): StorylyStoryGroupStyling.Builder

This function allows you to change the number of lines of the story group text

setTitleMaxLineCount
Link copied to clipboard
fun setTitleMaxLineCount(count: Int?): StorylyStoryGroupStyling.Builder

This function allows you to change the max number of lines of the story group text

setTitleMinLineCount
Link copied to clipboard
fun setTitleMinLineCount(count: Int?): StorylyStoryGroupStyling.Builder

This function allows you to change the min number of lines of the story group text

setTitleNotSeenColor
Link copied to clipboard
fun setTitleNotSeenColor(@ColorInt color: Int): StorylyStoryGroupStyling.Builder

This function allows you to change the text color of the story group

setTitleSeenColor
Link copied to clipboard
fun setTitleSeenColor(@ColorInt color: Int): StorylyStoryGroupStyling.Builder

This function allows you to change the text color of the story group

setTitleTextSize
Link copied to clipboard
fun setTitleTextSize(typeSizePair: Pair<Int, Int>): StorylyStoryGroupStyling.Builder

This function allows you to change the text size of the story group

setTitleTypeface
Link copied to clipboard
fun setTitleTypeface(typeface: Typeface): StorylyStoryGroupStyling.Builder

This function allows you to change the font of the story group text

setTitleVisibility
Link copied to clipboard
fun setTitleVisibility(isVisible: Boolean): StorylyStoryGroupStyling.Builder

This function allows you to change the visibility of the story group text