StorylyInit
@objc(StorylyInit)
public final class StorylyInit : NSObject
This class triggers initialization of Storyly
-
Undocumented
Declaration
Swift
@objc public var isProductFallbackEnabled: Bool
-
storylyPayload information to get moments groups for the user
Declaration
Swift
@objc public var storylyPayload: String? { get set }
-
StorylySegmentation instance to target story groups for the user
Declaration
Swift
@objc public var segmentation: StorylySegmentation { get set }
-
User specific information to fill the story/story group data
Declaration
Swift
@objc public var userData: [String : String] { get set }
-
StorylyInit initialization
Declaration
Swift
@objc public init(storylyId: String)
Parameters
storylyId
Instance token from Storyly dashboard
-
StorylyInit initialization
Declaration
Swift
@objc public init(storylyId: String, segmentation: StorylySegmentation = StorylySegmentation(segments: nil), customParameter: String? = nil, isTestMode: Bool = false, storylyPayload: String? = nil, userData: [String: String] = [:])
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.
storylyPayload
User payload to use for Moments by Storyly
userData
User specific information to fill the story/story group data