WishlistRemoveDelegate
public protocol WishlistRemoveDelegate : AnyObject
Notified when removing an item from the wishlist
-
Called when the
Product
was removed from the wishlist successfully- item: The
Product
that was unwishlisted - itemDetails: The corresponding
CatalogItemDetails
of theProduct
that was removed from the wishlist. If the removedProduct
is unavailable, it will be nil becuase there’s no correspodingCatalogItemDetails
of a unavailableProduct
.
Declaration
Swift
func wishlistRemoveDidSucceedFor(_ item: Product, with itemDetails: CatalogItemDetails?)
- item: The
-
Called when there was an error removing the
Product
from the wishlist- error: The
Error
representing the reason for failure. - result: The original
WishlistResult
passed toremoveFromWishlist
call
Declaration
Swift
func wishlistRemoveDidFailWith(_ error: Error, result: WishlistResult?)
- error: The