This commit is contained in:
启星
2025-08-08 10:49:36 +08:00
parent 6400cf78bb
commit b5ce3d580a
8780 changed files with 978183 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
//
// TUIChatMediaSendingManager.h
// TUIChat
//
// Created by yiliangwang on 2025/1/6.
// Copyright © 2025 Tencent. All rights reserved.
#import <Foundation/Foundation.h>
#import <TIMCommon/TUIMessageCellData.h>
NS_ASSUME_NONNULL_BEGIN
@interface TUIChatMediaTask : NSObject
@property (nonatomic, strong) TUIMessageCellData* placeHolderCellData;
@property (nonatomic, copy) NSString *msgID;
@property (nonatomic, copy) NSString *conversationID;
@end
@interface TUIChatMediaSendingManager : NSObject
@property (nonatomic, strong) NSMutableDictionary<NSString *, TUIChatMediaTask *> *tasks;
@property (nonatomic, strong) NSHashTable<UIViewController *> *mediaSendingControllers;
+ (instancetype)sharedInstance;
- (void)addMediaTask:(TUIChatMediaTask *)task forKey:(NSString *)key;
- (void)updateProgress:(float)progress forKey:(NSString *)key;
- (void)removeMediaTaskForKey:(NSString *)key;
- (NSMutableArray<TUIChatMediaTask *> *)findPlaceHolderListByConversationID:(NSString *)conversationID;
- (void)addCurrentVC:(UIViewController *)vc;
- (void)removeCurrentVC:(UIViewController *)vc;
@end
NS_ASSUME_NONNULL_END