LuxChat  2.0
Instant messenger for iOS
Instance Methods | Properties | List of all members
JSQMessagesCollectionView Class Reference

#import <JSQMessagesCollectionView.h>

Inheritance diagram for JSQMessagesCollectionView:
<JSQMessagesCollectionViewCellDelegate>

Instance Methods

(JSQMessagesTypingIndicatorFooterView *) - dequeueTypingIndicatorFooterViewForIndexPath:
 
(JSQMessagesLoadEarlierHeaderView *) - dequeueLoadEarlierMessagesViewHeaderForIndexPath:
 
- Instance Methods inherited from <JSQMessagesCollectionViewCellDelegate>
(void) - messagesCollectionViewCellDidTapAvatar:
 
(void) - messagesCollectionViewCellDidTapMessageBubble:
 
(void) - messagesCollectionViewCellDidLongTapMessageBubble:
 
(void) - messagesCollectionViewCellDidTapCell:atPosition:
 
(void) - messagesCollectionViewCell:didPerformAction:withSender:
 

Properties

id< JSQMessagesCollectionViewDataSourcedataSource
 
id< JSQMessagesCollectionViewDelegateFlowLayoutdelegate
 
JSQMessagesCollectionViewFlowLayoutcollectionViewLayout
 
BOOL typingIndicatorDisplaysOnLeft
 
UIColor * typingIndicatorMessageBubbleColor
 
UIColor * typingIndicatorEllipsisColor
 
UIColor * loadEarlierMessagesHeaderTextColor
 

Detailed Description

The JSQMessagesCollectionView class manages an ordered collection of message data items and presents them using a specialized layout for messages.

Method Documentation

- (JSQMessagesLoadEarlierHeaderView *) dequeueLoadEarlierMessagesViewHeaderForIndexPath: (NSIndexPath *)  indexPath

Returns a JSQMessagesLoadEarlierHeaderView object for the specified index path that is configured using the collection view's loadEarlierMessagesHeaderTextColor property.

Parameters
indexPathThe index path specifying the location of the supplementary view in the collection view. This value must not be nil.
Returns
A valid JSQMessagesLoadEarlierHeaderView object.
- (JSQMessagesTypingIndicatorFooterView *) dequeueTypingIndicatorFooterViewForIndexPath: (NSIndexPath *)  indexPath

Returns a JSQMessagesTypingIndicatorFooterView object for the specified index path that is configured using the collection view's properties: typingIndicatorDisplaysOnLeft, typingIndicatorMessageBubbleColor, typingIndicatorEllipsisColor.

Parameters
indexPathThe index path specifying the location of the supplementary view in the collection view. This value must not be nil.
Returns
A valid JSQMessagesTypingIndicatorFooterView object.

Property Documentation

- (JSQMessagesCollectionViewFlowLayout*) collectionViewLayout
readwritenonatomicstrong

The layout used to organize the collection view’s items.

- (id<JSQMessagesCollectionViewDataSource>) dataSource
readwritenonatomicweak

The object that provides the data for the collection view. The data source must adopt the JSQMessagesCollectionViewDataSource protocol.

- (id<JSQMessagesCollectionViewDelegateFlowLayout>) delegate
readwritenonatomicweak

The object that acts as the delegate of the collection view. The delegate must adpot the JSQMessagesCollectionViewDelegateFlowLayout protocol.

- (UIColor*) loadEarlierMessagesHeaderTextColor
readwritenonatomicstrong

The color of the text in the load earlier messages header. The default value is a bright blue color.

- (BOOL) typingIndicatorDisplaysOnLeft
readwritenonatomicassign

Specifies whether the typing indicator displays on the left or right side of the collection view when shown. That is, whether it displays for an "incoming" or "outgoing" message. The default value is YES, meaning that the typing indicator will display on the left side of the collection view for incoming messages.

If your JSQMessagesViewController subclass displays messages for right-to-left languages, such as Arabic, set this property to NO.

- (UIColor*) typingIndicatorEllipsisColor
readwritenonatomicstrong

The color of the typing indicator ellipsis. The default value is a dark gray color.

- (UIColor*) typingIndicatorMessageBubbleColor
readwritenonatomicstrong

The color of the typing indicator message bubble. The default value is a light gray color.


The documentation for this class was generated from the following files: