Builder

class Builder

Builder class of StorylyConfig

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): StorylyConfig

This function builds StorylyConfig with the current properties

setBarStyling
Link copied to clipboard
fun setBarStyling(styling: StorylyBarStyling): StorylyConfig.Builder

This function allows you to set StorylyBarStyling.

setCustomParameter
Link copied to clipboard
fun setCustomParameter(parameter: String?): StorylyConfig.Builder

This function allows you to set custom parameter for analytical purposes

setLabels
Link copied to clipboard
fun setLabels(labels: Set<String>?): StorylyConfig.Builder

This function allows you to set custom icons to Moments

setLayoutDirection
Link copied to clipboard
fun setLayoutDirection(direction: StorylyLayoutDirection): StorylyConfig.Builder

This function allows you to change the layout direction.

setLocale
Link copied to clipboard
fun setLocale(locale: String?): StorylyConfig.Builder

This function allows you to set localization to Storyly, sample convention is en-GB. Current supported languages for sdk texts are: de, en, es, fr, he, pt, ru, tr

setMomentsStyling
Link copied to clipboard
fun setMomentsStyling(styling: StorylyMomentsStyling): StorylyConfig.Builder

This function allows you to set StorylyMomentsStyling.

setProductConfig
Link copied to clipboard
fun setProductConfig(config: StorylyProductConfig): StorylyConfig.Builder

This function allows you to set custom icons to Moments

setShareConfig
Link copied to clipboard
fun setShareConfig(config: StorylyShareConfig): StorylyConfig.Builder

This function allows you to set StorylyShareConfig.

setStoryGroupStyling
Link copied to clipboard
fun setStoryGroupStyling(styling: StorylyStoryGroupStyling): StorylyConfig.Builder

This function allows you to set StorylyStoryGroupStyling.

setStoryStyling
Link copied to clipboard
fun setStoryStyling(styling: StorylyStoryStyling): StorylyConfig.Builder

This function allows you to set StorylyStoryStyling.

setTestMode
Link copied to clipboard
fun setTestMode(isTest: Boolean): StorylyConfig.Builder

This function allows you to set custom icons to Moments

setUserData
Link copied to clipboard
fun setUserData(data: Map<String, String>): StorylyConfig.Builder

This function allows you to set custom icons to Moments