Activity
@objc
public protocol Activity
A protocol through which user activities can be reported.
-
Report that the user has viewed a product.
- product: The product being viewed.
Declaration
Swift
func productViewed(_ product: ButtonProductCompatible?)
-
Report that the user added a product to their cart.
- product: The product added to the cart.
Declaration
Swift
func productAddedToCart(_ product: ButtonProductCompatible?)
-
Report that the user viewed their cart.
- products: The list of products in the cart.
Declaration
Swift
func cartViewed(_ products: [ButtonProductCompatible]?)