swish.events API lets you subscribe to events emitted by the SDK. Use it to react to changes in saved items, lists, cart state, and notifications.
subscribe(type, callback)
Subscribe to one or more events. Returns an unsubscribe function.
unsubscribe(type, callback)
Remove a specific event listener. Equivalent to calling the function returned by subscribe().