Builder

@objc(Builder)
public class Builder : NSObject

Undocumented

  • This function allows you to change the layout direction

    Declaration

    Swift

    @objc(setLayoutDirection:)
    public func setLayoutDirection(direction: StorylyLayoutDirection) -> Self
  • This function allows you to set custom parameter for analytical purposes

    Declaration

    Swift

    @objc(setCustomParameter:)
    public func setCustomParameter(parameter: String?) -> Self
  • This function allows you to set labels for analytical purposes

    Declaration

    Swift

    @objc(setLabels:)
    public func setLabels(labels: Set<String>?) -> Self
  • This function allows you to set user specific information to fill the story/story group data

    Declaration

    Swift

    @objc(setUserData:)
    public func setUserData(data: [String : String]) -> Self
  • 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.

    Declaration

    Swift

    @objc(setTestMode:)
    public func setTestMode(isTest: Bool) -> Self
  • This function allows you to set StorylyProductConfig.

    Declaration

    Swift

    @objc(setProductConfig:)
    public func setProductConfig(config: StorylyProductConfig) -> Self
  • This function allows you to set StorylyShareConfig.

    Declaration

    Swift

    @objc(setShareConfig:)
    public func setShareConfig(config: StorylyShareConfig) -> Self
  • 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

    Declaration

    Swift

    @objc(setLocale:)
    public func setLocale(locale: String?) -> Self
  • This function allows you to play video stories muted which can enable playing media of your app while watchig stories

    Declaration

    Swift

    @objc(setMute:)
    public func setMute(isMuted: Bool) -> Builder