| | |
| | | |
| | | #import <FBSDKCoreKit/FBSDKCopying.h> |
| | | |
| | | /*! |
| | | @abstract Represents a single hashtag that can be used with the share dialog. |
| | | /** |
| | | Represents a single hashtag that can be used with the share dialog. |
| | | */ |
| | | @interface FBSDKHashtag : NSObject <FBSDKCopying, NSSecureCoding> |
| | | |
| | | /*! |
| | | @abstract Convenience method to build a new hashtag with a string identifier. Equivalent to setting the |
| | | /** |
| | | Convenience method to build a new hashtag with a string identifier. Equivalent to setting the |
| | | `stringRepresentation` property. |
| | | @param hashtagString The hashtag string. |
| | | */ |
| | | + (instancetype)hashtagWithString:(NSString *)hashtagString; |
| | | |
| | | /*! |
| | | @abstract The hashtag string. |
| | | @discussion You are responsible for making sure that `stringRepresentation` is a valid hashtag (a single '#' followed |
| | | /** |
| | | The hashtag string. |
| | | |
| | | You are responsible for making sure that `stringRepresentation` is a valid hashtag (a single '#' followed |
| | | by one or more word characters). Invalid hashtags are ignored when sharing content. You can check validity with the |
| | | `valid` property. |
| | | @return The hashtag string. |
| | | */ |
| | | @property (nonatomic, readwrite, copy) NSString *stringRepresentation; |
| | | @property (nonatomic, copy) NSString *stringRepresentation; |
| | | |
| | | /*! |
| | | @abstract Tests if a hashtag is valid. |
| | | @discussion A valid hashtag matches the regular expression "#\w+": A single '#' followed by one or more |
| | | /** |
| | | Tests if a hashtag is valid. |
| | | |
| | | A valid hashtag matches the regular expression "#\w+": A single '#' followed by one or more |
| | | word characters. |
| | | @return YES if the hashtag is valid, NO otherwise. |
| | | */ |
| | | @property (nonatomic, readonly, assign, getter=isValid) BOOL valid; |
| | | |
| | | /*! |
| | | @abstract Compares the receiver to another hashtag. |
| | | /** |
| | | Compares the receiver to another hashtag. |
| | | @param hashtag The other hashtag |
| | | @return YES if the receiver is equal to the other hashtag; otherwise NO |
| | | */ |