init(_ appId: String)
init(_ appId: String)
func createElement(_ slug: String, _ target: UIView, options: [String: String] = [:])
createElement
method can be called with an optional options parameter.wrap
layout will shrink the element to its preferred height.flex
layout will make your element fill the height of the target view it's been put in. Be carefull to leave enough space for your element to show entirely when using this option. Content might be cropped or distorded if the container view is too small in height.func autoCreate(filters: [String] = [])
func commitPageViews()
func config(_ config: [String: Any], _ readOnly: Bool = false)
func texts(_ texts: [String: String], locale: String = "en", _ readOnly: Bool = false)
func variables(_ variables: [String: Any]) -> Void
func on(_ event: EngageEvent, once: Bool = false)
func off(_ event: EngageEvent)
.on
method.static func setDebug(_ enabled: Bool)