Builder

class Builder

Builder class of StorylyProductConfig

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): StorylyProductConfig

This function builds StorylyProductConfig with the current properties

setCartAvailability
Link copied to clipboard
fun setCartAvailability(isEnabled: Boolean): StorylyProductConfig.Builder

This function allows you to set availability of cart

setFallbackAvailability
Link copied to clipboard
fun setFallbackAvailability(isEnabled: Boolean): StorylyProductConfig.Builder

This function allows you to set enability of hydration from feed data from backend

setPriceFormatter
Link copied to clipboard
fun setPriceFormatter(formatter: StoryPriceFormatter): StorylyProductConfig.Builder
setProductFeed
Link copied to clipboard
fun setProductFeed(feed: Map<String, List<STRProductItem>>?): StorylyProductConfig.Builder

This function allows you to set user specific product feed