EMThreadManagerDelegate.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //
  2. // EMThreadManagerDelegate.h
  3. // HyphenateSDK
  4. //
  5. // Created by 朱继超 on 2022/3/1.
  6. // Copyright © 2022 easemob.com. All rights reserved.
  7. //
  8. #ifndef EMThreadManagerDelegate_h
  9. #define EMThreadManagerDelegate_h
  10. #import "EMChatThread.h"
  11. #import "EMChatThreadEvent.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. /*!
  14. * \~chinese
  15. * 子区事件回调协议。
  16. *
  17. * \~english
  18. * The message thread event callback protocol.
  19. */
  20. @protocol EMThreadManagerDelegate <NSObject>
  21. @optional
  22. /*!
  23. * \~chinese
  24. * 子区创建回调。
  25. *
  26. * @param event 子区创建事件 {@link EMChatThreadEvent},包含子区信息。
  27. *
  28. * \~english
  29. * Occurs when a message thread is created.
  30. *
  31. * @param event The message thread creation event {@link EMChatThreadEvent}, which contains the message thread information.
  32. */
  33. - (void)onChatThreadCreate:(EMChatThreadEvent *)event;
  34. /*!
  35. * \~chinese
  36. * 子区更新回调。
  37. *
  38. * 修改子区名称或在子区中添加或撤销回复消息时触发该回调。
  39. *
  40. * @param event 子区更新事件 {@link EMChatThreadEvent},包含子区信息。
  41. *
  42. * \~english
  43. * Occurs when the message thread is updated.
  44. *
  45. * This callback is triggered when the message thread name is changed or a threaded reply is added or recalled.
  46. *
  47. * @param event The message thread update event {@link EMChatThreadEvent}, which contains the message thread information.
  48. */
  49. - (void)onChatThreadUpdate:(EMChatThreadEvent *)event;
  50. /*!
  51. * \~chinese
  52. * 子区解散回调。
  53. *
  54. * @param event 子区解散事件 {@link EMChatThreadEvent},包含子区信息。
  55. *
  56. * \~english
  57. * Occurs when the message thread is destroyed.
  58. *
  59. * @param event The message thread destruction event {@link EMChatThreadEvent}, which contains the message thread information.
  60. */
  61. - (void)onChatThreadDestroy:(EMChatThreadEvent *)event;
  62. /*!
  63. * \~chinese
  64. * 用户被踢出子区后收到的回调。
  65. *
  66. * @param event 用户移除事件 {@link EMChatThreadEvent},包含子区信息。
  67. *
  68. * \~english
  69. * Occurs when a user is kicked out of the message thread.
  70. *
  71. * @param event The user removal event {@link EMChatThreadEvent}, which contains the message thread information.
  72. */
  73. - (void)onUserKickOutOfChatThread:(EMChatThreadEvent *)event;
  74. @end
  75. NS_ASSUME_NONNULL_END
  76. #endif /* EMThreadManagerDelegate_h */