47 lines
1.2 KiB
Objective-C
47 lines
1.2 KiB
Objective-C
//
|
|
// 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
|