Package 

Class AppLinkData


  • 
    public class AppLinkData
    
                        

    Class to encapsulate an app link, and provide methods for constructing the data from various sources

    • Method Detail

      • getArgumentBundle

        @Nullable() Bundle getArgumentBundle()

        The full set of arguments for this app link. Properties like target uri & ref are typicallypicked out of this set of arguments.

      • fetchDeferredAppLinkData

         static void fetchDeferredAppLinkData(Context context, AppLinkData.CompletionHandler completionHandler)

        Asynchronously fetches app link information that might have been stored for use afterinstallation of the app

        Parameters:
        context - The context
        completionHandler - CompletionHandler to be notified with the AppLinkData object or nullif none is available.
      • fetchDeferredAppLinkData

         static void fetchDeferredAppLinkData(Context context, String applicationId, AppLinkData.CompletionHandler completionHandler)

        Asynchronously fetches app link information that might have been stored for use afterinstallation of the app

        Parameters:
        context - The context
        applicationId - Facebook application Id.
        completionHandler - CompletionHandler to be notified with the AppLinkData object or nullif none is available.
      • createFromActivity

        @Nullable() static AppLinkData createFromActivity(Activity activity)

        Parses out any app link data from the Intent of the Activity passed in.

        Parameters:
        activity - Activity that was started because of an app link
      • getRefererData

        @Nullable() Bundle getRefererData()

        The referer data associated with the app link. This will contain Facebook specific informationlike fb_access_token, fb_expires_in, and fb_ref.