Files
featherVoice/TUIKit/TUIContact/UI_Classic/UI/TUIContactSelectController.h
2025-08-08 10:49:36 +08:00

50 lines
1.2 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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 contactsdefalut 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