No Description

MessageReadManager.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /************************************************************
  2. * * EaseMob CONFIDENTIAL
  3. * __________________
  4. * Copyright (C) 2013-2014 EaseMob Technologies. All rights reserved.
  5. *
  6. * NOTICE: All information contained herein is, and remains
  7. * the property of EaseMob Technologies.
  8. * Dissemination of this information or reproduction of this material
  9. * is strictly forbidden unless prior written permission is obtained
  10. * from EaseMob Technologies.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #import "MessageModel.h"
  14. typedef void (^FinishBlock)(BOOL success);
  15. typedef void (^PlayBlock)(BOOL playing, MessageModel *messageModel);
  16. @class EMChatFireBubbleView;
  17. @interface MessageReadManager : NSObject
  18. @property (strong, nonatomic) FinishBlock finishBlock;
  19. @property (strong, nonatomic) MessageModel *audioMessageModel;
  20. + (id)defaultManager;
  21. //default
  22. - (void)showBrowserWithImages:(NSArray *)imageArray;
  23. /**
  24. * 准备播放语音文件
  25. *
  26. * @param messageModel 要播放的语音文件
  27. * @param updateCompletion 需要更新model所在的Cell
  28. *
  29. * @return 若返回NO,则不需要调用播放方法
  30. *
  31. */
  32. - (BOOL)prepareMessageAudioModel:(MessageModel *)messageModel
  33. updateViewCompletion:(void (^)(MessageModel *prevAudioModel, MessageModel *currentAudioModel))updateCompletion;
  34. - (MessageModel *)stopMessageAudioModel;
  35. @end