Builder

@objc(StorylyProductConfigBuilder)
public class Builder : NSObject

Builder class of StorylyProductConfig

  • Undocumented

    Declaration

    Swift

    @objc(setPriceFormatter:)
    public func setPriceFormatter(formatter: StoryPriceFormatter) -> Builder
  • This function allows you to set enability of hydration from feed data from backend

    Declaration

    Swift

    @objc(setFallbackAvailability:)
    public func setFallbackAvailability(isEnabled: Bool) -> Builder
  • This function allows you to set enability of hydration from feed data from backend

    Declaration

    Swift

    @objc(setCartEnabled:)
    public func setCartEnabled(isEnabled: Bool) -> Builder
  • This function allows you to set user specific product feed

    Declaration

    Swift

    @objc(setProductFeed:)
    public func setProductFeed(feed: [String : [STRProductItem]]?) -> Builder
  • This function builds StorylyProductConfig with the current properties

    Declaration

    Swift

    @objc
    public func build() -> StorylyProductConfig

    Return Value

    StorylyProductConfig instance