FacebookEvent class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
clearUserData ()
→ Future <void >
Clear user data
clearUserID ()
→ Future <void >
Clear user id.
flush ()
→ Future <void >
Explicitly flush any stored events to the server.
getAndroidHashKey ()
→ Future <String ? > ?
Android apps must be digitally signed with a release key before you can upload them to the store.
This method helps to get the release key for setup android in facebook portal
getAnonymousId ()
→ Future <String ? > ?
Each app/device pair gets an GUID that is sent back with App Events and persisted with this app/device pair.
getApplicationId ()
→ Future <String ? >
This method returns the app ID.
logAchieveLevelEvent ({required String level })
→ Future <void >
logActivatedApp ()
→ Future <void >
This event when an app is being activated.
logAddPaymentInfoEvent ({required bool success })
→ Future <void >
This event use when compete a successful payment
logAddToCartEvent ({required double price , String contentData = '' , String contentId = '' , String contentType = '' , String currency = 'USD' })
→ Future <void >
This event uses when the addition of an item to a shopping cart or basket.
logCompleteRegistrationEvent ({required String registrationMethod , required String name , required String currency })
→ Future <void >
This event when the user has completed registration with the app.
Parameter registrationMethod
is used to specify the method the user has
logContactEvent ({required String contact })
→ Future <void >
Contact event
logDeactivatedApp ()
→ Future <void >
This event when an app is being deactivated.
logEvent ({required String name , Map <String , dynamic > ? body , double ? valueToSum })
→ Future <void >
Log an app event with the specified name and set of parameters.
logInitiateCheckoutEvent ({required double totalPrice , String contentData = '' , String contentId = '' , String contentType = '' , String currency = 'USD' , int numItems = 1 , bool paymentInfoAvailable = false })
→ Future <void >
The event for the checkout process. For example, clicking a Checkout button.
logPurchase ({required double amount , required String currency , Map <String , dynamic > ? body })
→ Future <void >
Logs a purchase event with Facebook explicitly, in the specified amount and with the specified currency.
logPushNotificationOpen ({required Map <String , dynamic > payload , required String action })
→ Future <void >
Logs an app event that tracks that the application was open via Push Notification.
logRateEvent ({required double ratingGiven , String contentData = '' , String contentId = '' , String contentType = '' , int maxRatingValue = 5 })
→ Future <void >
logViewContent ({Map <String , dynamic > ? content , String ? id , String ? type })
→ Future <void >
This event when the user has viewed a form of content in the app.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAutoLogAppEventsEnabled (bool enabled )
→ Future <void >
Re-enables auto logging of app events after user consent
setDataProcessingOptions (List <String > options , {required int country , required int state })
→ Future <void >
Set Data Processing Options
setUserData ({required String email , required String firstName , required String lastName , required String phone , required String dateOfBirth , required String gender , required String city , required String state , required String zip , required String country })
→ Future <void >
Sets user data to associate with all events.
setUserID (String id )
→ Future <void >
Sets a user id
to associate with all events.
toString ()
→ String
A string representation of this object.
inherited
updateUserProperties ({required Map <String , dynamic > body , required String applicationId })
→ Future <void >
Update user properties as provided by a map of body