ApperoAnalyticsDelegate class abstract
Delegate interface for receiving analytics events from the Appero SDK.
Implement this interface to track user interactions with the feedback UI.
Example:
class MyAnalyticsDelegate implements ApperoAnalyticsDelegate {
@override
void onRatingSelected(int rating) {
// Send to your analytics service
FirebaseAnalytics.instance.logEvent(
name: 'appero_rating_selected',
parameters: {'rating': rating},
);
}
@override
void onFeedbackSubmitted(int rating, String? feedback) {
// Send to your analytics service
FirebaseAnalytics.instance.logEvent(
name: 'appero_feedback_submitted',
parameters: {
'rating': rating,
'has_feedback': feedback != null,
},
);
}
}
// Set the delegate
Appero.instance.setAnalyticsDelegate(MyAnalyticsDelegate());
Constructors
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
-
onFeedbackSubmitted(
int rating, String? feedback) → void - Called when a user submits feedback.
-
onRatingSelected(
int rating) → void - Called when a user selects a rating in the feedback UI.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited