WishlistRemoveDelegate
public protocol WishlistRemoveDelegate : AnyObject
Notified when removing an item from the wishlist
-
Called when the
Productwas removed from the wishlist successfully- item: The
Productthat was unwishlisted - itemDetails: The corresponding
CatalogItemDetailsof theProductthat was removed from the wishlist. If the removedProductis unavailable, it will be nil becuase there’s no correspodingCatalogItemDetailsof a unavailableProduct.
Declaration
Swift
func wishlistRemoveDidSucceedFor(_ item: Product, with itemDetails: CatalogItemDetails?) - item: The
-
Called when there was an error removing the
Productfrom the wishlist- error: The
Errorrepresenting the reason for failure. - result: The original
WishlistResultpassed toremoveFromWishlistcall
Declaration
Swift
func wishlistRemoveDidFailWith(_ error: Error, result: WishlistResult?) - error: The
WishlistRemoveDelegate Protocol Reference