BFAppLinkResolving.h 849 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2014, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #import <Foundation/Foundation.h>
  11. @class BFTask;
  12. /*!
  13. Implement this protocol to provide an alternate strategy for resolving
  14. App Links that may include pre-fetching, caching, or querying for App Link
  15. data from an index provided by a service provider.
  16. */
  17. @protocol BFAppLinkResolving <NSObject>
  18. /*!
  19. Asynchronously resolves App Link data for a given URL.
  20. @param url The URL to resolve into an App Link.
  21. @returns A BFTask that will return a BFAppLink for the given URL.
  22. */
  23. - (BFTask *)appLinkFromURLInBackground:(NSURL *)url;
  24. @end