FBSDKAppLinkUtility Class Reference
Inherits from | NSObject |
Declared in | FBSDKAppLinkUtility.h |
Class Methods
fetchDeferredAppInvite:
Call this method from the main thread to fetch deferred deeplink for App Invites Handler is called with deeplink url, if found, nil otherwise.
+ (BOOL)fetchDeferredAppInvite:(FBSDKDeferredAppInviteHandler)handler
Parameters
- handler
Handler to be called when we fetch deeplink url.
Return Value
YES if async fetch process was started, NO if it failed to start. Note it returns NO for versions < iOS 9.
Discussion
Call this method from the main thread to fetch deferred deeplink if you use App Invites. This may require a network round trip. If successful, this will call the handler provided, with deferred deeplink that was clicked by the user. If there is a error/timeout, handler will be called with nil. This method only works on iOS 9+ and returns NO otherwise. 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 didFinishLaunchingWithOptions:).
Declared In
FBSDKAppLinkUtility.h
fetchDeferredAppLink:
@abstract 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).
+ (void)fetchDeferredAppLink:(FBSDKDeferredAppLinkHandler)handler
Parameters
- handler
the handler to be invoked if there is deferred App Link data
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:).
Declared In
FBSDKAppLinkUtility.h