Android SDK Version
  • java.lang.Object
    • com.facebook.applinks.FacebookAppLinkResolver

public class FacebookAppLinkResolver
extends java.lang.Object
Provides an implementation for the AppLinkResolver interface that uses the Facebook App Link index to resolve App Links given a URL. It also provides an additional helper method that can resolve multiple App Links in a single call.
Constructor Summary
Constructor and Description
FacebookAppLinkResolver() 
Method Summary
Modifier and TypeMethod and Description
<any>getAppLinkFromUrlInBackground(Uri uri)
Asynchronously resolves App Link data for the passed in Uri
<any>getAppLinkFromUrlsInBackground(java.util.List<Uri> uris)
Asynchronously resolves App Link data for multiple URLs
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

FacebookAppLinkResolver

public FacebookAppLinkResolver()
Method Detail

getAppLinkFromUrlInBackground

public <any> getAppLinkFromUrlInBackground(Uri uri)
Asynchronously resolves App Link data for the passed in Uri
Parameters:
uri - Uri to be resolved into an App Link
Returns:
A Task that, when successful, will return an AppLink for the passed in Uri. This may be null if no App Link data was found for this Uri. In the case of general server errors, the task will be completed with the corresponding error.

getAppLinkFromUrlsInBackground

public <any> getAppLinkFromUrlsInBackground(java.util.List<Uri> uris)
Asynchronously resolves App Link data for multiple URLs
Parameters:
uris - A list of Uri objects to resolve into App Links
Returns:
A Task that, when successful, will return a Map of Uri->AppLink for each Uri that was successfully resolved into an App Link. Uris that could not be resolved into App Links will not be present in the Map. In the case of general server errors, the task will be completed with the corresponding error.