MBMessageMetrics class

The class that send metrics/analytics data to MBurger.

Constructors

MBMessageMetrics()

Properties

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

checkLaunchNotification() Future<void>
Checks the launch notification and sends analytics data to MBurger if a notification has launched the app.
inAppMessageInteracted(MBMessage message) Future<void>
Called when an in-app message has an interaction, it sends the MBMessageMetricsMetric.interaction metric. If the MBMessageMetricsMetric.view metric has not been sent yet it sends also this metric.
inAppMessageShowed(MBMessage message) Future<void>
Called when an in-app message is showed, it sends the MBMessageMetricsMetric.view metric.
notificationArrived(Map<String, dynamic> notification) Future<void>
Called when a notification arrives sends the MBMessageMetricsMetric.view metric.
notificationTapped(Map<String, dynamic> notification) Future<void>
Called when a notification is tapped, it sends the MBMessageMetricsMetric.interaction metric. If the MBMessageMetricsMetric.view metric has not been sent yet it sends also this metric.