TUIMoreView.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. /**
  4. * This file declares the components used to implement the "more" view.
  5. * More view, the window that appears when you click the "+" button in the lower right corner of the chat window.
  6. * More view are usually responsible for providing some additional important functions, such as sending pictures, taking pictures and sending, sending videos,
  7. * sending files, etc. Currently TUIKit implements and provides the above four functions. If the above 4 functions cannot meet your functional requirements, you
  8. * can also add your custom unit in this view.
  9. *
  10. * TUIMoreView provides an entry for sending multimedia messages such as videos, pictures, and files based on the existing text messaging.
  11. * The TUIMoreViewDelegate protocol provides callbacks for more views in response to user actions.
  12. */
  13. #import <UIKit/UIKit.h>
  14. #import "TUIInputMoreCell.h"
  15. @class TUIMoreView;
  16. /////////////////////////////////////////////////////////////////////////////////
  17. //
  18. // TUIMoreViewDelegate
  19. //
  20. /////////////////////////////////////////////////////////////////////////////////
  21. @protocol TUIMoreViewDelegate <NSObject>
  22. - (void)moreView:(TUIMoreView *)moreView didSelectMoreCell:(TUIInputMoreCell *)cell;
  23. @end
  24. /////////////////////////////////////////////////////////////////////////////////
  25. //
  26. // TUIMoreView
  27. //
  28. /////////////////////////////////////////////////////////////////////////////////
  29. /**
  30. * 【Module name】 TUIMoreView
  31. * 【Function description】More view are displayed after clicking the "+" on the far right of the input box.
  32. * This view can provide you with functional extensions on the current page. for example:
  33. * 1. Camera. Call the system camera to take a photo and send
  34. * 2. Photo. Select a picture from the system album and send it.
  35. * 3. Video. Select a video from the system gallery and send it.
  36. * 4. File. Select file from system files and send.
  37. */
  38. @interface TUIMoreView : UIView
  39. @property(nonatomic, strong) UIView *lineView;
  40. @property(nonatomic, strong) UICollectionView *moreCollectionView;
  41. @property(nonatomic, strong) UICollectionViewFlowLayout *moreFlowLayout;
  42. @property(nonatomic, strong) UIPageControl *pageControl;
  43. @property(nonatomic, weak) id<TUIMoreViewDelegate> delegate;
  44. - (void)setData:(NSArray *)data;
  45. @end