Builder

@objc(MomentsConfigBuilder)
public final class Builder : NSObject

Builder class of Moments Config

  • This function allows your users to see different stylings through moments screens

    Declaration

    Swift

    @objc
    public func setMomentsTheme(theme: MomentsThemeConfig) -> Builder

    Parameters

    theme

    MpmentsTheme config to set

    Return Value

    Current builder

  • This function allows your users to set configs of interactive components

    Declaration

    Swift

    @objc
    public func setInteractiveConfig(config: MomentsInteractiveConfig) -> Builder

    Parameters

    config

    Interactive configs to set

    Return Value

    Current builder

  • This function allows your users to config camera

    Declaration

    Swift

    @objc
    public func setCameraConfig(config: MomentsCameraConfig) -> Builder

    Parameters

    config

    Camera config to set

    Return Value

    Current builder

  • This function builds MomentsConfig with the current properties

    Declaration

    Swift

    @objc
    public func build(momentsToken: String, userPayload: String) -> MomentsConfig

    Parameters

    momentsToken

    Moments token which is retrieved from dashboard

    userPayload

    User payload value

    Return Value

    MomentsConfig instance