Appgain class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
logger
↔ Logger
getter/setter pair
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
addNotificationChannel ({required String ? notificationType , required String item })
→ Future
notificationType (email or SMS)
item (user.email or phone number for SMS)
addPurchase ({required String productName , required String currency , required double amount })
→ Future
required product name, currency and amount to your product
cancelfireAutomator ({required String triggerPoint })
→ Future
for example --> when delete cart items you can cancel fire automator
that you fire it
enableReciveNotification ({required String ? type })
→ Future
MARK: enableReciveNotification
enable (String)
type (String) one of theses values ("appPush","SMS","email")
Output : - callback with two parameter
success bool as string
error
fireAutomator ({required String triggerPoint })
→ Future
Create your auto message in Appgain Dashboard
required triggerPoint => Trigger that you named in dashboard
fireAutomatorWithPersonalization ({required String ? triggerPoint , Map <String , Object > ? personalizationMap })
→ Future
fire Automator with Personalization
required triggerPoint user name
you can add map with personalization
for Example:-
var personalizationData = {
'name': 'appgain',
'cartName': 'sport',
'value': 22,
};
getUserId ()
→ Future
Geting Appgain user Id
initAppgainSDK ({required String ? appId , required String ? appKey })
→ Future
Initializes the Appgain sdk
initAppgainSDKWithSubdomain ({required String ? appId , required String ? appKey , required String subdomain })
→ Future
Initializes the Appgain sdk with subdomain
logEvent ({required String ? type , String ? action , })
→ Future
matchLink ()
→ Future
After a new user has installed your app,
to detect if the app was installed from a smart deep link or not,
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setuserId ({required String userId })
→ Future
Geting Appgain user Id
toString ()
→ String
A string representation of this object.
inherited
updateUser ({required Map <String , String > data })
→ Future
required map
Example:
var updatedData = {
'email': 'email',
'phone': 'phone',
'updatedField1': 'value',
"updatedField2": "value"
};