MethodChannelFlutterMetaSdk class

An implementation of FlutterMetaSdkPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activateApp() Future<void>
inherited
clearUserData() Future<void>
Clears the current user data
inherited
clearUserID() Future<void>
Clears the currently set user id.
inherited
flush() Future<void>
Explicitly flush any stored events to the server.
inherited
getAnonymousId() Future<String?>
inherited
getApplicationId() Future<String?>
Returns the app ID this logger was configured to log to.
inherited
logAdClick({required String adType}) Future<void>
Log this event when the user clicks an ad.
inherited
logAddToCart({Map<String, dynamic>? content, required String id, required String type, required String currency, required double price}) Future<void>
Log this event when the user has added item to cart
inherited
logAddToWishlist({Map<String, dynamic>? content, required String id, required String type, required String currency, required double price}) Future<void>
Log this event when the user has added item to cart
inherited
logAdImpression({required String adType}) Future<void>
Log this event when the user views an ad.
inherited
logCompletedRegistration({String? registrationMethod}) Future<void>
Log this event when the user has completed registration with the app. Parameter registrationMethod is used to specify the method the user has used to register for the app, e.g. "Facebook", "email", "Google", etc. See: https://developers.facebook.com/docs/reference/androidsdk/current/facebook/com/facebook/appevents/appeventsconstants.html/#eventnamecompletedregistration
inherited
logEvent({required String name, Map<String, dynamic>? parameters, double? valueToSum}) Future<void>
Log an app event with the specified name and the supplied parameters value.
inherited
logInitiatedCheckout({double? totalPrice, String? currency, String? contentType, String? contentId, int? numItems, bool paymentInfoAvailable = false}) Future<void>
inherited
logPurchase({required double amount, required String currency, Map<String, dynamic>? parameters}) Future<void>
inherited
logPushNotificationOpen({required Map<String, dynamic> payload, String? action}) Future<void>
Logs an app event that tracks that the application was open via Push Notification.
inherited
logRated({double? valueToSum}) Future<void>
Log this event when the user has rated an item in the app.
inherited
logStartTrial({double? price, String? currency, required String orderId}) Future<void>
The start of a free trial of a product or service you offer (example: trial subscription). See:
inherited
logSubscribe({double? price, String? currency, required String orderId}) Future<void>
The start of a paid subscription for a product or service you offer. See:
inherited
logViewContent({Map<String, dynamic>? content, String? id, String? type, String? currency, double? price}) Future<void>
Log this event when the user has viewed a form of content in the app.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAdvertiserTracking({required bool enabled, bool collectId = true}) Future<void>
Sets the Advert Tracking propeety for iOS advert tracking an iOS 14+ feature, android should just return a success.
inherited
setAutoLogAppEventsEnabled(bool enabled) Future<void>
Re-enables auto logging of app events after user consent if disabled for GDPR-compliance.
inherited
setDataProcessingOptions(List<String> options, {int? country, int? state}) Future<void>
Set Data Processing Options This is needed for California Consumer Privacy Act (CCPA) compliance
inherited
setUserData({String? email, String? firstName, String? lastName, String? phone, String? dateOfBirth, String? gender, String? city, String? state, String? zip, String? country}) Future<void>
Sets user data to associate with all app events. All user data are hashed and used to match Facebook user from this instance of an application. The user data will be persisted between application instances.
inherited
setUserID(String id) Future<void>
Sets a user id to associate with all app events. This can be used to associate your own user id with the app events logged from this instance of an application. The user ID will be persisted between application instances.
inherited
toString() String
A string representation of this object.
inherited

Operators

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