50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
|
|
|
|||
|
|
// Created by Tencent on 2023/06/09.
|
|||
|
|
// Copyright © 2023 Tencent. All rights reserved.
|
|||
|
|
#import <TIMCommon/TIMCommonModel.h>
|
|||
|
|
#import <TIMCommon/TIMDefine.h>
|
|||
|
|
#import <UIKit/UIKit.h>
|
|||
|
|
#import "TUIContactSelectViewDataProvider.h"
|
|||
|
|
|
|||
|
|
NS_ASSUME_NONNULL_BEGIN
|
|||
|
|
|
|||
|
|
typedef void (^ContactSelectFinishBlock)(NSArray<TUICommonContactSelectCellData *> *_Nonnull selectArray);
|
|||
|
|
|
|||
|
|
@interface TUIContactSelectController : UIViewController
|
|||
|
|
|
|||
|
|
@property(nonatomic, strong, nullable) TUIContactSelectViewDataProvider *viewModel;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Callback for contact selection end
|
|||
|
|
*/
|
|||
|
|
@property(nonatomic, copy, nullable) ContactSelectFinishBlock finishBlock;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Maximum number of selected contacts,defalut value is 0 which means no limit
|
|||
|
|
*/
|
|||
|
|
@property(nonatomic, assign) NSInteger maxSelectCount;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* List of pre-selected users
|
|||
|
|
*/
|
|||
|
|
@property(nonatomic, strong, nullable) NSArray *sourceIds;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* List of pre-banned users
|
|||
|
|
*/
|
|||
|
|
@property(nonatomic, strong, nullable) NSArray *disableIds;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Display name for sourceIds or disableIds
|
|||
|
|
*/
|
|||
|
|
@property(nonatomic, strong, nullable) NSDictionary *displayNames;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* Navigation title for view controller
|
|||
|
|
*/
|
|||
|
|
@property(nonatomic, copy, nullable) NSString *title;
|
|||
|
|
|
|||
|
|
@end
|
|||
|
|
|
|||
|
|
NS_ASSUME_NONNULL_END
|