FBAppLinkResolver.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright 2010-present Facebook.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import <Bolts/BFAppLinkResolving.h>
  18. /*!
  19. @class FBAppLinkResolver
  20. @abstract
  21. Provides an implementation of the BFAppLinkResolving protocol that uses the Facebook app link
  22. index to resolve App Links given a URL. It also provides an additional helper method that can resolve
  23. multiple App Links in a single call.
  24. @discussion
  25. Usage of this type requires a client token. See `[FBSettings setClientToken:]`.
  26. */
  27. @interface FBAppLinkResolver : NSObject<BFAppLinkResolving>
  28. /*!
  29. @abstract Asynchronously resolves App Link data for multiple URLs.
  30. @param urls An array of NSURLs to resolve into App Links.
  31. @returns A BFTask that will return dictionary mapping input NSURLs to their
  32. corresponding BFAppLink.
  33. @discussion
  34. You should set the client token before making this call. See `[FBSettings setClientToken:]`
  35. */
  36. - (BFTask *)appLinksFromURLsInBackground:(NSArray *)urls;
  37. /*!
  38. @abstract Allocates and initializes a new instance of FBAppLinkResolver.
  39. */
  40. + (instancetype)resolver;
  41. @end