YBUserListView.h 846 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // YBUserListView.h
  3. // YBVideo
  4. //
  5. // Created by YB007 on 2019/11/30.
  6. // Copyright © 2019 cat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef void (^UserListBlock)(NSString *eventStr,NSDictionary *eventDic);
  10. typedef NS_ENUM(NSInteger,UserEventType) {
  11. UserEvent_Leave,
  12. UserEvent_Enter,
  13. };
  14. @interface YBUserListView : UIView
  15. @property(nonatomic,copy)UserListBlock listEvent;
  16. @property(nonatomic,strong)NSString *liveUid; //主播uid
  17. @property(nonatomic,strong)NSString *liveStream; //主播留地址
  18. /** 用户第一次进房间、请求僵尸粉数组赋值 */
  19. -(void)updateListCount:(NSArray *)listArray;
  20. /** 除了自己外的用户进入、离开 */
  21. -(void)userEventOfType:(UserEventType)eventType andInfo:(NSDictionary *)eventDic;
  22. /** 计时器刷新 */
  23. -(void)timerReloadList;
  24. @end