增加换肤功能
This commit is contained in:
39
TUIKit/TUIChat/CommonModel/TUIMessageProgressManager.h
Normal file
39
TUIKit/TUIChat/CommonModel/TUIMessageProgressManager.h
Normal file
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// TUIMessageProgressManager.h
|
||||
// TUIChat
|
||||
//
|
||||
// Created by harvy on 2022/1/4.
|
||||
// Copyright © 2023 Tencent. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef NS_ENUM(NSInteger, TUIMessageSendingResultType) { TUIMessageSendingResultTypeSucc = 0, TUIMessageSendingResultTypeFail = 1 };
|
||||
|
||||
@protocol TUIMessageProgressManagerDelegate <NSObject>
|
||||
|
||||
- (void)onUploadProgress:(NSString *)msgID progress:(NSInteger)progress;
|
||||
- (void)onDownloadProgress:(NSString *)msgID progress:(NSInteger)progress;
|
||||
|
||||
- (void)onMessageSendingResultChanged:(TUIMessageSendingResultType)type messageID:(NSString *)msgID;
|
||||
|
||||
@end
|
||||
|
||||
@interface TUIMessageProgressManager : NSObject
|
||||
|
||||
+ (instancetype)shareManager;
|
||||
|
||||
- (void)addDelegate:(id<TUIMessageProgressManagerDelegate>)delegate;
|
||||
- (void)removeDelegate:(id<TUIMessageProgressManagerDelegate>)delegate;
|
||||
|
||||
- (NSInteger)uploadProgressForMessage:(NSString *)msgID;
|
||||
- (NSInteger)downloadProgressForMessage:(NSString *)msgID;
|
||||
- (void)appendUploadProgress:(NSString *)msgID progress:(NSInteger)progress;
|
||||
- (void)appendDownloadProgress:(NSString *)msgID progress:(NSInteger)progress;
|
||||
- (void)notifyMessageSendingResult:(NSString *)msgID result:(TUIMessageSendingResultType)result;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user