moengage_cards library
Export MoEngage Cards Module Public Classes
Classes
- Action
- Base class all Action.
- ButtonStyle
- Style for Button Widget - WidgetType.button
- CampaignState
- State of the card Campaign
- Card
- Card Campaign data
- CardsController
- Cards Method Channel Controller
- CardsData
- Data for Cards for particular Category
- CardsInfo
- All data for cards.
- Container
- Container to hold UI widget. Equivalent to a Container Widget in Flutter
- ContainerStyle
- Style for Container widget
- DisplayControl
- Delivery Controls defined during campaign creation.
- ImageStyle
- Style for Button Widget - WidgetType.image
- MetaData
- Meta data related to a campaign.
- MoEngageCards
- Helper Class to interact with MoEngage Cards Feature
- MoEngageCardsPlatform
- Common Implementation of Cards Platform Interface
- MoEngageCardsPlatformInterface
- Platform Interface for Cards Plugin
- Navigation Action Data
- ShowTime
- Time span during card can be shown
- SyncCompleteData
- Sync Complete Data
- Template
- Card Template data.
- TextStyle
- Style for Button Widget - WidgetType.text
- Widget
- UI element in a card.
- WidgetStyle
- Base style for all widgets.
Enums
- ActionType
- Type of Action to be performed Note: Currently, only Navigation Action is Supported
- Navigation Action Types
- StaticImageType
- StaticImageType enum for representing types of static images.
- SyncType
- Card Sync Types
- TemplateType
- Card Template Types available in Dashboard
- WidgetType
- Types of UI widgets supported.
Extensions
- StaticImageTypeExtension on StaticImageType
- Extension on StaticImageType for converting an enum instance to its associated string.
Constants
- argumentAllCards → const String
- argumentAppOpenSync → const String
- argumentImmediateSync → const String
- argumentInboxOpenSync → const String
- argumentPullToRefreshSync → const String
- cardsMethodChannel → const String
- defaultContainerBgColor → const String
- defaultFontSize → const int
- defaultTextBgColor → const String
- keyActions → const String
- keyActionType → const String
- keyActionValue → const String
- keyAdditionalMetaData → const String
- keyBackgroundColor → const String
- keyCampaignPayload → const String
- keyCampaignState → const String
- keyCard → const String
- keyCardId → const String
- keyCards → const String
- keyCategories → const String
- keyCategory → const String
- keyContainerId → const String
- keyContainers → const String
- keyContainerStyle → const String
- keyContainerType → const String
- keyCreatedAt → const String
- keyDeletionTime → const String
- keyDisplayControl → const String
- keyEndTime → const String
- keyExpireAfterDelivered → const String
- keyExpireAfterSeen → const String
- keyExpireAt → const String
- keyFirstReceived → const String
- keyFirstSeen → const String
- keyFontSize → const String
- keyHasUpdates → const String
- keyId → const String
- keyIsAllCategoryEnabled → const String
- keyIsClicked → const String
- keyIsNewCard → const String
- keyIsPinned → const String
- keyKVPairs → const String
- keyLocalShowCount → const String
- keyMaxCount → const String
- keyMetaData → const String
- keyNewCardsCount → const String
- keyShouldShowAllTab → const String
- keyShowTime → const String
- keyStartTime → const String
- keySyncCompleteData → const String
- keySyncType → const String
- keyTemplateData → const String
- keyTemplateType → const String
- keyTotalShowCount → const String
- keyUnClickedCardsCount → const String
- keyUnClickedCount → const String
- keyUpdatedAt → const String
- keyWidgetContent → const String
- keyWidgetId → const String
- keyWidgetIdentifier → const String
- keyWidgets → const String
- keyWidgetStyle → const String
- keyWidgetType → const String
- methodCardClicked → const String
- methodCardDelivered → const String
- methodCardsCategories → const String
- methodCardsForCategory → const String
- methodCardShown → const String
- methodCardsInfo → const String
- methodDeleteCards → const String
- methodFetchCards → const String
- methodInitialize → const String
- methodIsAllCategoryEnabled → const String
- methodNewCardsCount → const String
- methodOnCardSectionLoaded → const String
- methodOnCardSectionUnLoaded → const String
- methodOnCardsSync → const String
- methodOnInboxOpenCardsSync → const String
- methodPullToRefreshCardsSync → const String
- methodRefreshCards → const String
- methodSetCardsSyncListener → const String
- methodUnClickedCardsCount → const String
- moduleTag → const String
Functions
-
actionStyleFromJson(
Map< String, dynamic> json) → Action -
deSerializeCardsCategories(
String payload) → List< String> -
deSerializeCardsData(
String payload) → CardsData -
deSerializeCardsInfo(
String payload) → CardsInfo -
deSerializeIsAllCategoryEnabled(
String payload) → bool -
deSerializeNewCardsCount(
String payload) → int -
deSerializeUnClickedCardsCount(
String payload) → int -
getAppIdPayload(
String appId) → Map< String, dynamic> -
getCardClickPayload(
Card card, int widgetId, String appId) → Map< String, dynamic> -
getCardsForCategoryPayload(
String category, String appId) → Map< String, dynamic> -
getCardShownPayload(
Card card, String appId) → Map< String, dynamic> -
getDeleteCardsPayload(
List< Card> cards, String appId) → Map<String, dynamic> -
parseCardsListFromJson(
dynamic json) → List< Card> - Helper method to parse a list of Card objects from JSON.
-
parseStaticImageAccessibilityData(
dynamic accessibilityJson) → Map< StaticImageType, AccessibilityData> ? - Parses static image accessibility data from JSON.
-
serializeCardsToJson(
List< Card> cards) → List<Map< String, dynamic> > -
Helper method to serialize a list of
Cardobjects to JSON. -
serializeStaticImageAccessibilityData(
Map< StaticImageType, AccessibilityData> ? accessibilityData) → Map<String, dynamic> ? - Serializes static image accessibility data to JSON.
-
syncTypeFromString(
String? syncType) → SyncType -
syncTypeToString(
SyncType syncType) → String -
widgetStyleFromJson(
Map< String, dynamic> ? json, WidgetType widgetType) → WidgetStyle?
Typedefs
- CardsSyncListener = void Function(SyncCompleteData? data)
- Card Sync Listener