TUIVoiceMessageCell.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. /**
  4. *
  5. * This file declares the TUIVoiceMessageCell class, which is responsible for implementing the display of voice messages.
  6. * Voice messages, i.e. message units displayed after voice is sent/received. TUIKit displays it as a message with a "sound wave" icon in a bubble by default.
  7. * The voice message unit is also responsible for responding to the user's operation and playing the corresponding audio information when the user clicks.
  8. */
  9. #import <TIMCommon/TUIBubbleMessageCell.h>
  10. #import "TUIVoiceMessageCellData.h"
  11. @import AVFoundation;
  12. /**
  13. *
  14. * 【Module name】 TUIVoiceMessageCell
  15. * 【Function description】 Voice message unit
  16. * - Voice messages, i.e. message units displayed after voice is sent/received. TUIKit displays it as a message with a "sound wave" icon in a bubble by
  17. * default.
  18. * - The voice message unit provides the display and playback functions of voice messages.
  19. * - The TUIVoiceMessageCellData in the voice message unit integrates and calls the voice download and acquisition of the IM SDK, and handles the related
  20. * business logic.
  21. * - This class inherits from TUIBubbleMessageCell to implement bubble messages. You can implement custom bubbles by referring to this inheritance
  22. * relationship.
  23. */
  24. @interface TUIVoiceMessageCell : TUIBubbleMessageCell
  25. /**
  26. * Voice icon
  27. * It is used to display the voice "sound wave" icon, and at the same time realize the animation effect of the voice when it is playing.
  28. */
  29. @property(nonatomic, strong) UIImageView *voice;
  30. /**
  31. * Label for displays video duration
  32. * Used to display the duration of the speech outside the bubble, the default value is an integer and the unit is seconds.
  33. */
  34. @property(nonatomic, strong) UILabel *duration;
  35. @property(nonatomic, strong) UIImageView *voiceReadPoint;
  36. @property TUIVoiceMessageCellData *voiceData;
  37. - (void)fillWithData:(TUIVoiceMessageCellData *)data;
  38. @end