moengage_flutter library
Classes
- AccountMeta
- Account Meta
- Action
- InApp Base Action
- AnalyticsConfig
- Analytics Config
- Cache
- Core Cache
- CallbackCache
- Native to Flutter Callback Cache
- CampaignContext
- Context of InApp Campaign
- CampaignData
- InApp Campaign Data
- ClickData
- InApp Click Data
- CoreController
- Native to Flutter Method Channel Controller
- CoreInstanceProvider
- Instance Specific Cache for Callbacks
- CustomAction
- Custom Action
- InAppData
- InApp Data
- InAppPayloadMapper
- InApp Json Payload Mapper
- InitConfigPayloadMapper
- PayloadMapper for MoEInitConfig
- Logger
- Logger Util Class to print logs to the Flutter Console
- MoEGeoLocation
- User Attribute Location Attribute
- MoEInitConfig
- Init Config instance to be passed during initialization. If it is not passed default values will be used.
- MoEngageFlutter
- Helper Class to interact with MoEngage SDK
- MoEngageFlutterPlatform
- Platform Interface for MoEngage Flutter Plugin
- MoEProperties
- Helper class to track event attributes.
- Navigation Action Data
- PermissionResultData
- Permission Result Data
- PushCampaign
- Push Campaign Related Data
- PushCampaignData
- Push Campaign Related Data
- PushConfig
- Push Notification Config
- PushTokenData
- Push Token Data
- Rules
- InApp Campaign Display Rules
- SelfHandledCampaign
- Self Handled Inpp Campaign Data
- SelfHandledCampaignData
- Self Handled InApp Campaign Data
- SelfHandledCampaignsData
- Data for multiple Self Handled InApp Campaigns
- UserDeletionData
- User Deletion Data @author Gowtham KK @since 1.1.0
Enums
- ActionType
- InApp Action Type
- LogLevel
- Log Level to handle type of Log
- MoEAppStatus
- Application Status
- MoEGender
- User attribute Gender options
- MoEngageNudgePosition
- Position for Non-Intrusive Nudge Campaigns @since 2.0.0
- MoEPushService
- Type of Push Notification Services
- Navigation Types for Navigation Action
- PermissionType
- Permission Type
Extensions
- MoEPushServiceExtention on MoEPushService
- For Converting MoEPushService Enum to String
- Extension for Converting Navigation Type Enum to String
- PermissionTypeExtension on PermissionType
- Permission Type Extension
Constants
- appStatusInstall → const String
- appStatusUpdate → const String
- BASE_TAG → const String
- Base Tag for Logger
- callbackOnInAppClicked → const String
- callbackOnInAppCustomAction → const String
- callbackOnInAppDismissed → const String
- callbackOnInAppSelfHandled → const String
- callbackOnInAppShown → const String
- callbackOnPushClick → const String
- callbackPermissionResult → const String
- callbackPushTokenGenerated → const String
- channelName → const String
- gdprOptOutTypeData → const String
- genderFemale → const String
- genderMale → const String
- genderOther → const String
- keyAccountMeta → const String
- keyActionType → const String
- keyAdId → const String
- keyAlias → const String
- keyAnalyticsConfig → const String
- keyAndroidId → const String
- keyAppId → const String
- keyAppStatus → const String
- keyAttributeName → const String
- keyAttributeType → const String
- keyAttributeValue → const String
- keyAttrLatitudeName → const String
- keyAttrLongitudeName → const String
- keyCampaignContext → const String
- keyCampaignId → const String
- keyCampaignName → const String
- keyCampaigns → const String
- keyClickedAction → const String
- keyContexts → const String
- keyCustomAction → const String
- keyData → const String
- keyDeviceId → const String
- keyDismissInterval → const String
- keyDisplayRules → const String
- keyEventAttributes → const String
- keyEventName → const String
- keyFormattedCampaignId → const String
- keyInitConfig → const String
- keyIsDefaultAction → const String
- keyIsPermissionGranted → const String
- keyIsSdkEnabled → const String
- keyKvPair → const String
- keyLocationAttribute → const String
- keyNudgePosition → const String
- keyPayload → const String
- keyPermissionType → const String
- keyPlatform → const String
- keyPushConfig → const String
- keyPushPayload → const String
- keyPushService → const String
- keyPushToken → const String
- keyScreenName → const String
- keySelfHandled → const String
- keySelfHandledPushRedirection → const String
- Key for Self handled push redirection. If self handled push direction is true, Client is responsible for push redirection on Push Click
- keyService → const String
- keyShouldDeliverCallbackOnForegroundClick → const String
- Key for Registering for sdk to send only callback on Push Click on App Foreground. MoEngage SDK will not handle the redirection in this case
- keyShouldTrackUserAttributeBooleanAsNumber → const String
- Key for whether to track boolean user-attributes as 0/1 in iOS.
- keyState → const String
- keyType → const String
- keyUpdatePushPermissionCount → const String
- keyUserDeletionStatus → const String
- keyValue → const String
- methodDeviceIdentifierTracking → const String
- methodInitialise → const String
- methodiOSRegisterProvisionalPush → const String
- methodiOSRegisterPush → const String
- methodLogout → const String
- methodNameDeleteUser → const String
- User Deletion
- methodNameShowNudge → const String
- Non Intrusive Nudges
- methodOnOrientationChanged → const String
- methodOptOutTracking → const String
- methodPermissionResponse → const String
- methodPushPayLoad → const String
- methodPushToken → const String
- methodRequestPushPermissionAndroid → const String
- methodResetAppContext → const String
- methodSelfHandledCallback → const String
- methodSelfHandledInApp → const String
- methodSelfHandledInApps → const String
- SelfHandled InApp
- methodSetAlias → const String
- methodSetAppContext → const String
- methodSetAppStatus → const String
- methodSetupNotificationChannelAndroid → const String
- methodSetUserAttribute → const String
- methodShowInApp → const String
- methodTrackEvent → const String
- methodUpdateDeviceIdentifierTrackingStatus → const String
- methodUpdatePushPermissionRequestCount → const String
- methodUpdateSdkState → const String
- selfHandledActionClick → const String
- selfHandledActionDismissed → const String
- selfHandledActionShown → const String
- tag → const String
- Log Tag for Utils.dart
- TAG → const String
- userAttrNameBirtdate → const String
- userAttrNameEmailId → const String
- userAttrNameFirstName → const String
- userAttrNameGender → const String
- userAttrNameLastName → const String
- userAttrNameLocation → const String
- userAttrNamePhoneNum → const String
- userAttrNameUniqueId → const String
- userAttrNameUserName → const String
- userAttrTypeGeneral → const String
- userAttrTypeLocation → const String
- userAttrTypeTimestamp → const String
Functions
-
accountMetaFromMap(
Map< String, dynamic> metaPayload) → AccountMeta - Get AccountMeta from Map
-
accountMetaToMap(
AccountMeta accountMeta) → Map< String, dynamic> - Convert AccountMeta to Map
-
castOrFallback<
T> (dynamic x, T fallback) → T - Null Safe Type Casting With FallBack
-
filterIterableWithSupportedTypes(
Iterable iterable) → Iterable - Filter List with Only Supported Data Types. Unsupported and null values will be filtered out
-
filterMapWithSupportedTypes(
Map< String, dynamic> data) → Map<String, dynamic> -
Filter Map with Only Supported Data Types. Unsupported and null values will be filtered out
data
- Instance of Map containing Key-Value Pairs Returns Map with valid data -
filterSupportedTypes(
dynamic attributeValue) → dynamic - Filters out UnSupported Types and returns valid data Returns null if
-
genderToString(
MoEGender gender) → String - Convert Gender to String
-
getAccountMeta(
String appId) → Map< String, dynamic> -
Get Account Meta for given
appId
-
getAccountMetaFromPayload(
dynamic methodCallArgs) → AccountMeta? - Returns Instance of AccountMeta from Json Payload if exists otherwise null
-
getAliasPayload(
String alias, String appId) → Map< String, dynamic> -
Get Alias payload for given
appId
-
getAppStatusPayload(
MoEAppStatus appStatus, String appId) → Map< String, dynamic> -
Get App Status payload for given
appId
-
getEventPayload(
String eventName, MoEProperties eventAttributes, String appId) → Map< String, dynamic> - Get Event Tracking Payload
-
getInAppContextPayload(
List< String> contexts, String appId) → Map<String, dynamic> -
Get InApp Context payload for given
appId
-
getMap(
String key, dynamic value) → Map< String, dynamic> - Get Map from Key-Value Pair
-
getOptOutTrackingPayload(
String type, bool shouldOptOutDataTracking, String appId) → Map< String, dynamic> - Get Data Tracking OptOut Payload
-
getPermissionResponsePayload(
bool isGranted, PermissionType type) → Map< String, dynamic> - Get Permission Response Payload
-
getShowNudgeJsonPayload(
MoEngageNudgePosition position, String appId) → Map< String, dynamic> -
Get Show Nudge Json Payload provided the
position
andappId
-
getUpdateSdkStatePayload(
bool shouldEnableSdk, String appId) → Map< String, dynamic> - Get Update SDK state Payload
-
getUserAttributePayload(
String attributeName, String attributeType, dynamic attributeValue, String appId) → Map< String, dynamic> - Get User Attribute Payload
-
isSupportedPrimitiveType(
dynamic attributeValue) → bool -
Returns true if
attributeValue
is supported primitive type, otherwise false -
permissionResultFromMap(
dynamic methodCallArgs) → PermissionResultData - Get PermissionResultData from Json String
Typedefs
- InAppClickCallbackHandler = void Function(ClickData data)
- InApp Click Action Callback
- InAppDismissedCallbackHandler = void Function(InAppData data)
- InApp Dismiss Callback
- InAppShownCallbackHandler = void Function(InAppData data)
- InApp Shown Callback
- PermissionResultCallbackHandler = void Function(PermissionResultData data)
- Push Permission Result Callback
- PushClickCallbackHandler = void Function(PushCampaignData data)
- Push Click Callback
- PushTokenCallbackHandler = void Function(PushTokenData data)
- PushToken Callback
- SelfHandledInAppCallbackHandler = void Function(SelfHandledCampaignData? data)
- Self Handled InApp Available Callback