iOS SDK Version

FBSDKAppLinkUtility

@interfaceFBSDKAppLinkUtility:NSObject
Class containing App Links related utility methods.
  • Unavailable
    Undocumented

    Declaration

    Objective-C
    -(instancetype)initNS_UNAVAILABLE;
  • Unavailable
    Undocumented

    Declaration

    Objective-C
    +(instancetype)newNS_UNAVAILABLE;
  • 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).
    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:).

    Declaration

    Objective-C
    +(void)fetchDeferredAppLink:(nullableFBSDKURLBlock)handler;
    Swift
    classfuncfetchDeferredAppLink(_handler:URLBlock?=nil)

    Parameters

    handler
    the handler to be invoked if there is deferred App Link data
  • Undocumented

    Declaration

    Objective-C
    +(nullableNSString*)appInvitePromotionCodeFromURL:(NSURL*)url;
    Swift
    classfuncappInvitePromotionCode(fromurl:URL)->String?
  • Check whether the scheme is defined in the app’s URL schemes.

    Declaration

    Objective-C
    +(BOOL)isMatchURLScheme:(nonnullNSString*)scheme;
    Swift
    classfuncisMatchURLScheme(_scheme:String)->Bool

    Parameters

    scheme
    the scheme of App Link URL

    Return Value

    YES if the scheme is defined, otherwise NO.