FlutterFacebookSdk class

A singleton class for plugin so that multiple streams dont open up

Constructors

FlutterFacebookSdk()
factory

Properties

getDeepLinkUrl Future<String?>
Returns deep link url
no setter
hashCode int
The hash code for this object.
no setterinherited
onDeepLinkReceived Stream<String>?
Returns a stream listener to handle deep link url changes Add a listener to this event to get updated deep link url
no setter
platformVersion Future<String?>
Returns the platform version of the running device
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

logActivateApp() Future<bool>
Logs App Activate Event of FBSDK
logAddToCart({required String contentType, required String contentData, required String contentId, required String currency, required double price}) Future<bool>
Logs Add to Cart Event of FBSDK with currency and price
logAddToWishlist({required String contentType, required String contentData, required String contentId, required String currency, required double price}) Future<bool>
Logs Add to Wishlist Event of FBSDK with currency and price
logCompleteRegistration({required String registrationMethod}) Future<bool>
Logs Complete Registration Event of FBSDK with registrationMethod
logEvent({required String eventName, double? valueToSum, dynamic parameters}) Future<bool>
A generic function to log facebook app events This can be used in place of other log event functions present in the plugin But for logging purchase you will have to explicityly use the logPurhcase method
logInitiateCheckout({required String contentType, required String contentData, required String contentId, required int numItems, required bool paymentInfoAvailable, required String currency, required double totalPrice}) Future<bool>
Logs Initiate Checkout Event of FBSDK with numItems and paymentInfoAvailable
logPurhcase({required double amount, required String currency, required Map<String, Object> params}) Future<bool>
Logs Purchase Event of FBSDK with currency and amount
logSearch({required String contentType, required String contentData, required String contentId, required String searchString, required bool success}) Future<bool>
Logs Search Event of FBSDK with searchString and success
logViewedContent({required String contentType, required String contentData, required String contentId, required String currency, required double price}) Future<bool>
Logs View Content Event of FBSDK with currency and price
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAdvertiserTracking({required bool isEnabled}) Future<bool>
Only Available in iOS Set the advertiser tracking to truue or false App events won't work if this is disabled
toString() String
A string representation of this object.
inherited

Operators

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