LuxChat  2.0
Instant messenger for iOS
JSQMessagesCollectionViewDataSource.h
1 //
2 // Created by Jesse Squires
3 // http://www.jessesquires.com
4 //
5 //
6 // Documentation
7 // http://cocoadocs.org/docsets/JSQMessagesViewController
8 //
9 //
10 // GitHub
11 // https://github.com/jessesquires/JSQMessagesViewController
12 //
13 //
14 // License
15 // Copyright (c) 2014 Jesse Squires
16 // Released under an MIT license: http://opensource.org/licenses/MIT
17 //
18 
19 #import <Foundation/Foundation.h>
20 #import <UIKit/UIKit.h>
21 
23 @protocol JSQMessageData;
26 
27 
33 @protocol JSQMessagesCollectionViewDataSource <UICollectionViewDataSource>
34 
35 @required
36 
44 - (NSString *)senderDisplayName;
45 
53 - (NSString *)senderId;
54 
63 - (id<JSQMessageData>)collectionView:(JSQMessagesCollectionView *)collectionView messageDataForItemAtIndexPath:(NSIndexPath *)indexPath;
64 
83 - (id<JSQMessageBubbleImageDataSource>)collectionView:(JSQMessagesCollectionView *)collectionView messageBubbleImageDataForItemAtIndexPath:(NSIndexPath *)indexPath;
84 
100 - (id<JSQMessageAvatarImageDataSource>)collectionView:(JSQMessagesCollectionView *)collectionView avatarImageDataForItemAtIndexPath:(NSIndexPath *)indexPath;
101 
102 @optional
103 
116 - (NSAttributedString *)collectionView:(JSQMessagesCollectionView *)collectionView attributedTextForCellTopLabelAtIndexPath:(NSIndexPath *)indexPath;
117 
130 - (NSAttributedString *)collectionView:(JSQMessagesCollectionView *)collectionView attributedTextForMessageBubbleTopLabelAtIndexPath:(NSIndexPath *)indexPath;
131 
144 - (NSAttributedString *)collectionView:(JSQMessagesCollectionView *)collectionView attributedTextForCellBottomLabelAtIndexPath:(NSIndexPath *)indexPath;
145 
146 @end
Definition: JSQMessageData.h:36
Definition: JSQMessagesCollectionView.h:34
Definition: JSQMessagesCollectionViewDataSource.h:33
Definition: JSQMessageAvatarImageDataSource.h:33
Definition: JSQMessageBubbleImageDataSource.h:34