TUIMediaView.h 908 B

1234567891011121314151617181920212223242526272829
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. /**
  4. * This file declares the logic used to realize the sliding display of pictures and videos
  5. */
  6. #import <UIKit/UIKit.h>
  7. @import ImSDK_Plus;
  8. @interface TUIMediaView : UIView
  9. @property(nonatomic, copy) dispatch_block_t onClose;
  10. /**
  11. * Setting thumb, for animating
  12. */
  13. - (void)setThumb:(UIImageView *)thumb frame:(CGRect)frame;
  14. /**
  15. * Setting the current message that needs to be displayed. MediaView will automatically load the before and after messages of the current message for display,
  16. * mainly used in the scene of the normal message list
  17. */
  18. - (void)setCurMessage:(V2TIMMessage *)curMessage;
  19. /**
  20. * Setting the current and all messages to be displayed, mainly used in the scenario of merge-forward message lists
  21. */
  22. - (void)setCurMessage:(V2TIMMessage *)curMessage allMessages:(NSArray *)messages;
  23. @end