TWTRSETweet Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in TWTRSETweet.h

+ setTwitterText:

+ (void)setTwitterText:(id<TwitterTextProtocol>)twitterText

+ twitterText

+ (Class<TwitterTextProtocol>)twitterText

  inReplyToTweetID

@property (nonatomic, nullable, copy) NSNumber *inReplyToTweetID

  text

@property (nonatomic, copy) NSString *text

  attachment

@property (nonatomic, nullable) id<TWTRSETweetAttachment> attachment

  place

@property (nonatomic, nullable) id<TWTRSEGeoPlace> place

– initWithInReplyToTweetID:text:attachment:place:usernames:hashtags:

(Optional) The tweet ID this tweet is a reply of.

- (instancetype)initWithInReplyToTweetID:(nullable NSNumber *)inReplyToTweetID text:(nullable NSString *)text attachment:(nullable id<TWTRSETweetAttachment>)attachment place:(nullable id<TWTRSEGeoPlace>)place usernames:(nullable NSArray<NSString*> *)usernames hashtags:(nullable NSArray<NSString*> *)hashtags

Parameters

inReplyToTweetID

(Optional) The tweet ID this tweet is a reply of.

text

The text contents of the tweet, not counting prefixing screennames or hashtags.

attachment

(Optional): See specific implementations of the TWTRSETweetAttachment protocol.

place

(Optional): The place where this tweet is geo-tagged.

usernames

(Optional): An array of usernames without leading “@” that are mentioned in this tweet.

hashtags

(Optional): An array of hashtags without leading “#” that are included in this tweet.

Declared In

TWTRSETweet.h

+ emptyTweet

+ (TWTRSETweet *)emptyTweet

– init

- (instancetype)init

– remainingCharacters

This will be a negative number if the tweet is over the limit

- (NSInteger)remainingCharacters

Declared In

TWTRSETweet.h

– isNearOrOverCharacterLimit

- (BOOL)isNearOrOverCharacterLimit

– isWithinCharacterLimit

- (BOOL)isWithinCharacterLimit