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) -> Product
-
Add a product
Declaration
Swift
@objc public func add(_ productId: String, category1: String) -> Product
-
Add a product
Declaration
Swift
@objc public func add(_ productId: String, category1: String, category2: String) -> Product
-
Add a product
Declaration
Swift
@objc public func add(_ productId: String, category1: String, category2: String, category3: String) -> Product
-
Add a product
Declaration
Swift
@objc public func add(_ productId: String, category1: String, category2: String, category3: String, category4: String) -> Product
-
Add a product
Declaration
Swift
@objc public func add(_ productId: String, category1: String, category2: String, category3: String, category4: String, category5: String) -> Product
-
Add a product
Declaration
Swift
@objc public func add(_ productId: String, category1: String, category2: String, category3: String, category4: String, category5: String, category6: String) -> Product
-
Remove a product
Declaration
Swift
@objc public func remove(_ productId: String)
-
Remove all the products
Declaration
Swift
@objc public func removeAll()
-
Send viewed products
Declaration
Swift
@objc public func sendViews()