TUIMediaCollectionCell.h 975 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // TUIMediaCollectionCell.h
  3. // TUIChat
  4. //
  5. // Created by xiangzhang on 2021/11/22.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <Photos/Photos.h>
  9. #import <TIMCommon/TUIMessageCellData.h>
  10. #import <UIKit/UIKit.h>
  11. @class TUIMediaCollectionCell;
  12. NS_ASSUME_NONNULL_BEGIN
  13. /////////////////////////////////////////////////////////////////////////////////
  14. //
  15. // TUIMediaCollectionCellDelegate
  16. //
  17. /////////////////////////////////////////////////////////////////////////////////
  18. @protocol TUIMediaCollectionCellDelegate <NSObject>
  19. /**
  20. * meida cell
  21. */
  22. - (void)onCloseMedia:(TUIMediaCollectionCell *)cell;
  23. @end
  24. @interface TUIMediaCollectionCell : UICollectionViewCell
  25. @property(nonatomic, strong) UIImageView *imageView;
  26. @property(nonatomic, strong) UIButton *downloadBtn;
  27. @property(nonatomic, weak) id<TUIMediaCollectionCellDelegate> delegate;
  28. - (void)fillWithData:(TUIMessageCellData *)data;
  29. @end
  30. NS_ASSUME_NONNULL_END