FBSDKAppLinkUtility
这个类有新版本。查看 最新版本。

Class containing App Links related utility methods.

Inherits from:NSObject
Declared in:FBSDKAppLinkUtility.h
类方法
fetchDeferredAppLink:

Call this method from the main thread to fetch deferred applink data if you use Mobile App Engagement Ads (https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads-engagement). This may require a network round trip. If successful, the handler is invoked with the link data (this will only return a valid URL once, and future calls will result in a nil URL value in the callback).

参数描述
handler

The handler to be invoked if there is deferred App Link data

+ (void) fetchDeferredAppLink:(FBSDKDeferredAppLinkHandler)handler;
Discussion:

The handler may contain an NSError instance to capture any errors. In the common case where there simply was no app link data, the NSError instance will be nil.

This method should only be called from a location that occurs after any launching URL has been processed (e.g., you should call this method from your application delegate's applicationDidBecomeActive:).

声明语言: FBSDKAppLinkUtility.h
Typedef
FBSDKDeferredAppLinkHandler

Describes the callback for fetchDeferredAppLink.

typedef void (^FBSDKDeferredAppLinkHandler)(
NSURL *url,
NSError *error);
Discussion:

The url may also have a fb_click_time_utc query parameter that represents when the click occurred that caused the deferred App Link to be created.

声明语言: FBSDKAppLinkUtility.h