UserView.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // UserView.h
  3. // BuguLive
  4. //
  5. // Created by 志刚杨 on 2023/1/3.
  6. // Copyright © 2023 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class UserView;
  10. @protocol UserViewDelegate <NSObject>
  11. @optional
  12. /**
  13. 数据加载完成
  14. */
  15. -(void)clickUserView:(UserView *)view;
  16. //添加点击videoBtn或voiceBtn代理
  17. -(void)clickVideoBtn:(UserView *)view;
  18. -(void)clickVoiceBtn:(UserView *)view;
  19. //点击关闭按钮
  20. -(void)clickCloseBtn:(UserView *)view;
  21. @end
  22. @interface UserView : UIView
  23. +(instancetype)getView;
  24. -(void)frontView;
  25. @property (weak, nonatomic) IBOutlet UIView *videoView;
  26. @property(nonatomic, assign) BOOL select;
  27. @property(nonatomic, strong) NSString *uid;
  28. @property (weak, nonatomic) IBOutlet UILabel *userName;
  29. @property (weak, nonatomic) IBOutlet UIImageView *giftButton;
  30. @property (weak, nonatomic) IBOutlet UILabel *numberLab;
  31. @property(nonatomic, strong) id<UserViewDelegate> delegate;
  32. @property (weak, nonatomic) IBOutlet UIButton *videoBtn;
  33. @property (weak, nonatomic) IBOutlet UIButton *voiceBtn;
  34. @property (weak, nonatomic) IBOutlet UIView *muteVideoView;
  35. @property (weak, nonatomic) IBOutlet UIImageView *avatar;
  36. @property(nonatomic, assign) int totalVolume;
  37. @property (weak, nonatomic) IBOutlet UIView *breathView;
  38. @end