MoEngageCardsViewControllerDelegate
@available(tvOS, unavailable)
@objc
public protocol MoEngageCardsViewControllerDelegate
An interface for receiving callback on performing UI actions on MoEngageCardsListViewController
.
-
Callback received when
MoEngageCardsListViewController
is dismissed from presentedDeclaration
Swift
@objc optional func cardsViewControllerDismissed(forAccountMeta accountMeta: MoEngageAccountMeta)
Parameters
accountMeta
MoEngageAccountMeta
instance that provides the appId. -
Callback received when card is deleted from
MoEngageCardsListViewController
Declaration
Swift
@objc optional func cardDeleted(withCardInfo card: MoEngageCardCampaign, forAccountMeta accountMeta: MoEngageAccountMeta)
Parameters
card
card that was deleted.
accountMeta
MoEngageAccountMeta
instance that provides the appId. -
Callback received when card is clicked on
MoEngageCardsListViewController
Declaration
Swift
@objc optional func cardClicked(withCardInfo card: MoEngageCardCampaign, andAction action: MoEngageCardAction, forAccountMeta accountMeta: MoEngageAccountMeta) -> Bool
Parameters
card
card that was clicked.
action
action associated with the card
accountMeta
MoEngageAccountMeta
instance that provides the appId.Return Value
Bool value