Products
public class Products: NSObject
Wrapper class to manage Product instances
-
Add a product - parameter productId: the product identifier - returns: the new product instance
Declaration
Swift
public func add(_ productId: String) -> ProductParameters
productIdthe product identifier
Return Value
the new product instance
-
Add a product
Declaration
Swift
public func add(_ productId: String, category1: String) -> ProductParameters
productIdthe product identifier
category1category1 label
Return Value
the new product instance
-
Add a product
Declaration
Swift
public func add(_ productId: String, category1: String, category2: String) -> ProductParameters
productIdthe product identifier
category1category1 label
category2category2 label
Return Value
the new product instance
-
Add a product
Declaration
Swift
public func add(_ productId: String, category1: String, category2: String, category3: String) -> ProductParameters
productIdthe product identifier
category1category1 label
category2category2 label
category3category3 label
Return Value
the new product instance
-
Add a product
Declaration
Swift
public func add(_ productId: String, category1: String, category2: String, category3: String, category4: String) -> ProductParameters
productIdthe product identifier
category1category1 label
category2category2 label
category3category3 label
category4category4 label
Return Value
the new product instance
-
Add a product
Declaration
Swift
public func add(_ productId: String, category1: String, category2: String, category3: String, category4: String, category5: String) -> ProductParameters
productIdthe product identifier
category1category1 label
category2category2 label
category3category3 label
category4category4 label
category5category5 label
Return Value
the new product instance
-
Add a product
Declaration
Swift
public func add(_ productId: String, category1: String, category2: String, category3: String, category4: String, category5: String, category6: String) -> ProductParameters
productIdthe product identifier
category1category1 label
category2category2 label
category3category3 label
category4category4 label
category5category5 label
category6category6 label
Return Value
the new product instance
-
Remove a product
Declaration
Swift
public func remove(_ productId: String)Parameters
productIdthe product identifier
-
Remove all the products
Declaration
Swift
public func removeAll() -
Send viewed products
Declaration
Swift
public func sendViews()
Products Class Reference