WishlistAddDelegate
public protocol WishlistAddDelegate : AnyObject
Notified when wishlisting item
-
Called when the
Product
was wishlisted successfully- item: The
Product
that was wishlisted - itemDetails: The corresponding
CatalogItemDetails
of theProduct
that was wishlisted
Declaration
Swift
func wishlistAddDidSucceedFor(_ item: Product, with itemDetails: CatalogItemDetails)
- item: The
-
Called when there was an error wishlisting the
Product
- error: The
Error
representing the reason for failure.
Declaration
Swift
func wishlistAddDidFailWith(_ error: Error)
- error: The