WFCUSeletedUserViewController.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // SeletedUserViewController.h
  3. // WFChatUIKit
  4. //
  5. // Created by Zack Zhang on 2020/4/2.
  6. // Copyright © 2020 WildFireChat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <WFChatClient/WFCChatClient.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. typedef NS_ENUM(NSInteger, WFCUSeletedUserHeaderViewLayoutType) {
  12. No = 0,
  13. Horizontal = 1,
  14. Vertical = 2
  15. };
  16. @interface WFCUSeletedUserViewController : UIViewController
  17. //当前页面原则上不提供数据源需要外部提供,本页只做用户多选功能使用,为兼容以前版本当前可以不由外部提供数据
  18. @property (nonatomic, strong)NSArray<WFCCUserInfo *> *inputData;
  19. @property (nonatomic, assign)int maxSelectCount;//当多选时有效,0不限制。
  20. @property (nonatomic, strong)NSString *groupId;
  21. @property (nonatomic, strong)NSArray *candidateUsers;
  22. @property (nonatomic, strong)NSArray *disableUserIds;
  23. /// 布局类型为布局Vertical: 行数最大值为2
  24. @property (nonatomic, assign)WFCUSeletedUserHeaderViewLayoutType type;
  25. @property (nonatomic, strong)void (^selectResult)(NSArray<NSString *> *contacts);
  26. @end
  27. NS_ASSUME_NONNULL_END