CooeePlugin class

Constructors

CooeePlugin()
Default Constructor will point to plugin initialization
factory

Properties

cooeeInAppNotificationButtonClickedHandler CooeeInAppNotificationButtonClickedHandler?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCooeeInAppNotificationAction(CooeeInAppNotificationButtonClickedHandler? handler) → void
Define a method to handle inApp notification button clicked
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getUserID() Future<String?>
Provides user ID assigned to the user by Cooee.
requestNotificationPermission() → void
Request an Notification Permission to the user

Note: This should be called on Android API 33 and above i.e Android 13(TIRAMISU) and above.
sendEvent(String eventName, [Map<String, dynamic>? eventProperties]) → void
Sends custom events to the server and returns with trigger data(if any)
setCurrentScreen(String screenName) → void
Manually update screen name
showDebugInfo() → void
Launch DebugInfoActivity activity which holds debug information. These information is useful to debug problem with the SDK.
updateUserData(Map<String, dynamic> userData) → void
Send given user data to the server
updateUserProfile(Map<String, dynamic> userData) → void
Send given user data to the server
updateUserProperties(Map<String, dynamic> userProperties) → void
Send given user properties to the server