CardListener

open class CardListener

Callback for async card callbacks.

Author

Umang Chamaria

Constructors

CardListener
Link copied to clipboard
fun CardListener()

Functions

onCardAvailable
Link copied to clipboard
open fun onCardAvailable(cardList: List<Card>, category: String)

Callback triggered when all eligible cards are available. You can request for all cards using MoECardHelper.getCardForCategory

onCardClick
Link copied to clipboard
open fun onCardClick(card: Card, navigationAction: NavigationAction): Boolean

Callback triggered when user clicks on a UI element with Navigation action.

onCardDelete
Link copied to clipboard
open fun onCardDelete(card: Card)
onNewCardCountAvailable
Link copied to clipboard
open fun onNewCardCountAvailable(newCount: Long)

Callback triggered when new card count is available. You can request for new card count using MoECardHelper.getNewCardCount

onSyncComplete
Link copied to clipboard
open fun onSyncComplete()

Callback triggered once the SDK has refreshed the cards on app open if required.

onUnClickedCountAvailable
Link copied to clipboard
open fun onUnClickedCountAvailable(unClickedCount: Long)

Callback triggered when un-clicked card count is available. You can request for unread card count using MoECardHelper.getUnClickedCardCount