提交
This commit is contained in:
46
TUIKit/TUIChat/CommonModel/TUIEmojiMeditorProtocolProvider.m
Normal file
46
TUIKit/TUIChat/CommonModel/TUIEmojiMeditorProtocolProvider.m
Normal file
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// TUIEmojiMeditorProtocolProvider.m
|
||||
// TUIEmojiPlugin
|
||||
//
|
||||
// Created by wyl on 2023/11/14.
|
||||
// Copyright © 2023 Tencent. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TUIEmojiMeditorProtocolProvider.h"
|
||||
#import <TIMCommon/TUIEmojiMeditorProtocol.h>
|
||||
#import <TIMCommon/TIMCommonMediator.h>
|
||||
#import <TIMCommon/TIMCommonModel.h>
|
||||
#import "TUIEmojiConfig.h"
|
||||
|
||||
@implementation TUIEmojiMeditorProtocolProvider
|
||||
+ (void)load {
|
||||
[TIMCommonMediator.share registerService:@protocol(TUIEmojiMeditorProtocol) class:self];
|
||||
}
|
||||
|
||||
- (id)getFaceGroup {
|
||||
return [TUIEmojiConfig.defaultConfig faceGroups];
|
||||
}
|
||||
- (void)appendFaceGroup:(TUIFaceGroup *)faceGroup {
|
||||
[TUIEmojiConfig.defaultConfig appendFaceGroup:faceGroup];
|
||||
}
|
||||
|
||||
- (id)getChatPopDetailGroups {
|
||||
return [TUIEmojiConfig.defaultConfig chatPopDetailGroups];
|
||||
}
|
||||
|
||||
- (id)getChatContextEmojiDetailGroups {
|
||||
return [TUIEmojiConfig.defaultConfig chatContextEmojiDetailGroups];
|
||||
}
|
||||
|
||||
- (id)getChatPopMenuRecentQueue {
|
||||
return [TUIEmojiConfig.defaultConfig getChatPopMenuRecentQueue];
|
||||
}
|
||||
|
||||
- (void)updateRecentMenuQueue:(NSString *)faceName {
|
||||
[TUIEmojiConfig.defaultConfig updateRecentMenuQueue:faceName];
|
||||
}
|
||||
|
||||
- (void)updateEmojiGroups {
|
||||
[TUIEmojiConfig.defaultConfig updateEmojiGroups];
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user