FBSDKShareLinkContent.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  2. //
  3. // You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
  4. // copy, modify, and distribute this software in source code or binary form for use
  5. // in connection with the web services and APIs provided by Facebook.
  6. //
  7. // As with any software that integrates with the Facebook platform, your use of
  8. // this software is subject to the Facebook Developer Principles and Policies
  9. // [http://developers.facebook.com/policy/]. This copyright notice shall be
  10. // included in all copies or substantial portions of the software.
  11. //
  12. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  14. // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  15. // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  16. // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  17. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  18. #import <Foundation/Foundation.h>
  19. #import <FBSDKShareKit/FBSDKSharingContent.h>
  20. /*!
  21. @abstract A model for status and link content to be shared.
  22. */
  23. @interface FBSDKShareLinkContent : NSObject <FBSDKSharingContent>
  24. /*!
  25. @abstract The description of the link.
  26. @discussion If not specified, this field is automatically populated by information scraped from the contentURL,
  27. typically the title of the page. This value may be discarded for specially handled links (ex: iTunes URLs).
  28. @return The description of the link
  29. */
  30. @property (nonatomic, copy) NSString *contentDescription;
  31. /*!
  32. @abstract The title to display for this link.
  33. @discussion This value may be discarded for specially handled links (ex: iTunes URLs).
  34. @return The link title
  35. */
  36. @property (nonatomic, copy) NSString *contentTitle;
  37. /*!
  38. @abstract The URL of a picture to attach to this content.
  39. @return The network URL of an image
  40. */
  41. @property (nonatomic, copy) NSURL *imageURL;
  42. /*!
  43. @abstract Some quote text of the link.
  44. @discussion If specified, the quote text will render with custom styling on top of the link.
  45. @return The quote text of a link
  46. */
  47. @property (nonatomic, copy) NSString *quote;
  48. /*!
  49. @abstract Compares the receiver to another link content.
  50. @param content The other content
  51. @return YES if the receiver's values are equal to the other content's values; otherwise NO
  52. */
  53. - (BOOL)isEqualToShareLinkContent:(FBSDKShareLinkContent *)content;
  54. @end