WishlistAddDelegate
public protocol WishlistAddDelegate : AnyObject
Notified when wishlisting item
-
Called when the
Productwas wishlisted successfully- item: The
Productthat was wishlisted - itemDetails: The corresponding
CatalogItemDetailsof theProductthat was wishlisted
Declaration
Swift
func wishlistAddDidSucceedFor(_ item: Product, with itemDetails: CatalogItemDetails) - item: The
-
Called when there was an error wishlisting the
Product- error: The
Errorrepresenting the reason for failure.
Declaration
Swift
func wishlistAddDidFailWith(_ error: Error) - error: The
WishlistAddDelegate Protocol Reference