Builder

class Builder : STRConfig.Builder<StorylyConfig.Builder>

Functions

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

This function allows you to set StorylyStoryGroupStyling.

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 labels for current instance

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

setLogLevel
Link copied to clipboard
fun setLogLevel(level: StorylyLogLevel): StorylyConfig.Builder

This function allows you to set log level of the Storyly IMPORTANT: Log level affects all Storyly widgets Default: OFF

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

This function allows you to set StorylyProductConfig.

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 IsTestMode which defines whether it is a test device or not. If true, test groups are sent from the server.

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

This function allows you to set user specific information to fill the story/story group data