StorylyInit

@objc
public final class StorylyInit : NSObject

This class triggers initialization of Storyly

  • StorylySegmentation instance to target story groups for the user

    Declaration

    Swift

    @objc
    public let segmentation: StorylySegmentation
  • StorylyInit initialization

    Declaration

    Swift

    @objc
    public convenience init(storylyId: String)

    Parameters

    storylyId

    Instance token from Storyly dashboard

  • StorylyInit initialization

    Declaration

    Swift

    @objc
    public convenience init(storylyId: String,
                            segmentation: StorylySegmentation)

    Parameters

    storylyId

    Instance token from Storyly dashboard

    segmentation

    StorylySegmentation instance to target story groups for the user

  • StorylyInit initialization

    Declaration

    Swift

    @objc
    public convenience init(storylyId: String,
                            isTestMode: Bool)

    Parameters

    storylyId

    Instance token from Storyly dashboard

    isTestMode

    IsTestMode defines whether it is a test device or not. If true, test groups are sent from the server.

  • StorylyInit initialization

    Declaration

    Swift

    @objc
    public convenience init(storylyId: String,
                            customParameter: String)

    Parameters

    storylyId

    Instance token from Storyly dashboard

    customParameter

    Custom parameter for analytical purposes

  • StorylyInit initialization

    Declaration

    Swift

    @objc
    public init(storylyId: String,
                segmentation: StorylySegmentation,
                customParameter: String?)

    Parameters

    storylyId

    Instance token from Storyly dashboard

    segmentation

    StorylySegmentation instance to target story groups for the user

    customParameter

    Custom parameter for analytical purposes

  • StorylyInit initialization

    Declaration

    Swift

    @objc
    public init(storylyId: String,
                segmentation: StorylySegmentation,
                customParameter: String?,
                isTestMode: Bool)

    Parameters

    storylyId

    Instance token from Storyly dashboard

    segmentation

    StorylySegmentation instance to target story groups for the user

    customParameter

    Custom parameter for analytical purposes

    isTestMode

    IsTestMode defines whether it is a test device or not. If true, test groups are sent from the server.