From 17e981a3c4cd9b41283ebe7e8dcbbce26d282a8a Mon Sep 17 00:00:00 2001 From: hank <hank.zhang@proficientcity.com> Date: Thu, 30 Aug 2018 09:25:54 +0800 Subject: [PATCH] [Update] WAFbImpl (3.7.0) --- frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h | 39 ++++++++++++++++++++++++++++++++++++--- 1 files changed, 36 insertions(+), 3 deletions(-) diff --git a/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h b/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h index 4c359c5..549c13b 100644 --- a/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h +++ b/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h @@ -18,6 +18,10 @@ #import <Foundation/Foundation.h> +#if !TARGET_OS_TV +#import <WebKit/WebKit.h> +#endif + #import <FBSDKCoreKit/FBSDKGraphRequestConnection.h> #import "FBSDKMacros.h" @@ -96,6 +100,14 @@ @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants. */ + + /** + * Parameter key used to specify data for the one or more pieces of content being logged about. + * Data should be a JSON encoded string. + * Example: + * "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]" + */ +FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContent; /** Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. */ FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContentID; @@ -381,7 +393,10 @@ /** - Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. Should typically be placed in the + Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. + This function is called automatically from FBSDKApplicationDelegate applicationDidBecomeActive, unless + one overrides 'FacebookAutoLogAppEventsEnabled' key to false in the project info plist file. + In case 'FacebookAutoLogAppEventsEnabled' is set to false, then it should typically be placed in the app delegates' `applicationDidBecomeActive:` method. This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to @@ -402,11 +417,11 @@ */ /** - Sets a device token to register the current application installation for push notifications. + Sets and sends device token to register the current application for push notifications. - Sets a device token from `NSData` representation that you get from `UIApplicationDelegate.-application:didRegisterForRemoteNotificationsWithDeviceToken:`. + Sets and sends a device token from `NSData` representation that you get from `UIApplicationDelegate.-application:didRegisterForRemoteNotificationsWithDeviceToken:`. - Parameter deviceToken: Device token data. */ @@ -496,6 +511,11 @@ + (void)setUserID:(NSString *)userID; /* + Clears the custom user ID to associate with all app events. + */ ++ (void)clearUserID; + +/* Returns the set custom user ID. */ + (NSString *)userID; @@ -509,4 +529,17 @@ */ + (void)updateUserProperties:(NSDictionary *)properties handler:(FBSDKGraphRequestHandler)handler; +#if !TARGET_OS_TV +/* + Intended to be used as part of a hybrid webapp. + If you call this method, the FB SDK will inject a new JavaScript object into your webview. + If the FB Pixel is used within the webview, and references the app ID of this app, + then it will detect the presence of this injected JavaScript object + and pass Pixel events back to the FB SDK for logging using the AppEvents framework. + + - Parameter webView: The webview to augment with the additional JavaScript behaviour + */ ++ (void)augmentHybridWKWebView:(WKWebView *)webView; +#endif + @end -- Gitblit v1.8.0