TUIInputMoreCellData.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. /**
  4. * This document declares modules for implementing "more" units.
  5. * - "More units", that is, several units that appear after clicking the "+" in the lower right corner of the chat interface.
  6. * - At present, "More Units" provides four multimedia sending functions of shooting, video, picture and file, and you can also customize it.
  7. * - TUIInputMoreCellData is responsible for storing the information needed for a series of "more" cells.
  8. */
  9. #import <Foundation/Foundation.h>
  10. @import UIKit;
  11. NS_ASSUME_NONNULL_BEGIN
  12. typedef void (^TUIInputMoreCallback)(NSDictionary *param);
  13. /////////////////////////////////////////////////////////////////////////////////
  14. //
  15. // TUIInputMoreCellData
  16. //
  17. /////////////////////////////////////////////////////////////////////////////////
  18. /**
  19. * 【Module name】TUIInputMoreCellData
  20. * 【Function description】"More units" data source
  21. * - "More Units" is responsible for displaying in "More Views", showing the user the functionality contained in "More Views". At the same time, it serves as
  22. * the entrance of each function and responds to user interaction events.
  23. * - The data source is responsible for storing the information needed for a series of "more units".
  24. */
  25. @interface TUIInputMoreCellData : NSObject
  26. /**
  27. * Image for single unit
  28. * The icons of each unit are different, which are used to visually represent the function corresponding to the unit
  29. */
  30. @property(nonatomic, strong) UIImage *image;
  31. /**
  32. * Name for single unit
  33. * The names of each unit are different (such as Photo, Video, File, Album, etc.), which are used to display the corresponding functions of the unit in text
  34. * form below the icon.
  35. */
  36. @property(nonatomic, strong) NSString *title;
  37. /**
  38. * Callback for clicked
  39. */
  40. @property(nonatomic, copy) TUIInputMoreCallback onClicked;
  41. /**
  42. * Prioriy for displaying in more menu list
  43. * The larger the value, the higher the front in list
  44. */
  45. @property(nonatomic, assign) NSInteger priority;
  46. @end
  47. NS_ASSUME_NONNULL_END