storyly Update Cart Event
abstract fun storylyUpdateCartEvent(storylyView: StorylyView, event: StorylyEvent, cart: STRCart?, change: STRCartItem?, onSuccess: (STRCart?) -> Unit?, onFail: (STRCartEventResult) -> Unit?)
Content copied to clipboard
This function will notify you about updates the cart in a StorylyView component
Parameters
storyly View
: StorylyView instance in which the event is received
event
: Storyly event type which is received
cart
: Contains information about the items in the cart
change
: Represents the item being changed in the cart.
on Success
: It represents a callback function that will be executed if the "update cart" operation is successful
on Fail
: It represents a callback function that will be executed if the "update cart" operation fails