TMPrePurchaseFavoritesListener

Interface for handling favorite button events in the prepurchase flow.

Used to manage favorite actions for events, triggered when the favorite button is enabled in TMPrePurchaseWebsiteConfiguration.

Functions

Link copied to clipboard
abstract fun isAbstractEntityInFavorites(event: DiscoveryAbstractEntity): Boolean

Checks if an event is marked as a favorite.

Link copied to clipboard
abstract fun onAbstractEntityAddedInFavorites(event: DiscoveryAbstractEntity, didAdd: (Boolean) -> Unit)

Called when an event is added to favorites via the favorite button.

Link copied to clipboard
abstract fun onAbstractEntityRemovedFromFavorites(event: DiscoveryAbstractEntity, didRemove: (Boolean) -> Unit)

Called when an event is removed from favorites via the favorite button.