Builder

open class Builder<T : STRConfig.Builder<T>?>

Functions

build
Link copied to clipboard
open fun build(): STRConfig
setCustomParameter
Link copied to clipboard
fun setCustomParameter(parameter: String?): T

This function allows you to set custom parameter for analytical purposes

setLabels
Link copied to clipboard
fun setLabels(labels: Set<String>?): T

This function allows you to set labels for current instance

setLayoutDirection
Link copied to clipboard
fun setLayoutDirection(direction: StorylyLayoutDirection): T

This function allows you to change the layout direction.

setLocale
Link copied to clipboard
fun setLocale(locale: String?): T

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): T

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): T

This function allows you to set StorylyProductConfig.

setShareConfig
Link copied to clipboard
fun setShareConfig(config: StorylyShareConfig): T

This function allows you to set StorylyShareConfig.

setTestMode
Link copied to clipboard
fun setTestMode(isTest: Boolean): T

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>): T

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

Inheritors

StorylyConfig
Link copied to clipboard
StorylyVerticalFeedConfig
Link copied to clipboard