添加埋点

This commit is contained in:
2026-01-06 19:25:34 +08:00
parent 1096f24c57
commit c3909d63da
30 changed files with 784 additions and 39 deletions

View File

@@ -640,6 +640,7 @@ static void KBULDarwinCallback(CFNotificationCenterRef center, void *observer, C
// UL App Scheme访
// 访 KBStreamTextView
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
// KBFunctionTagListView id/name
// + 访访
if ([[KBFullAccessManager shared] hasFullAccess]) {
KBTagItemModel *selModel = self.modelArray[indexPath.item];
@@ -682,6 +683,11 @@ static void KBULDarwinCallback(CFNotificationCenterRef center, void *observer, C
#pragma mark - Button Actions
- (void)onTapPaste {
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_keyboard_function_paste_btn"
pageId:@"keyboard_function_panel"
elementId:@"paste_btn"
extra:nil
completion:nil];
//
// - iOS16+ App
// - iOS15
@@ -776,6 +782,11 @@ static void KBULDarwinCallback(CFNotificationCenterRef center, void *observer, C
- (void)onTapDelete {
NSLog(@"点击:删除");
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_keyboard_function_delete_btn"
pageId:@"keyboard_function_panel"
elementId:@"delete_btn"
extra:nil
completion:nil];
UIInputViewController *ivc = KBFindInputViewController(self);
id<UITextDocumentProxy> proxy = ivc.textDocumentProxy;
[[KBInputBufferManager shared] refreshFromProxyIfPossible:proxy];
@@ -786,11 +797,21 @@ static void KBULDarwinCallback(CFNotificationCenterRef center, void *observer, C
}
- (void)onTapClear {
NSLog(@"点击:清空");
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_keyboard_function_clear_btn"
pageId:@"keyboard_function_panel"
elementId:@"clear_btn"
extra:nil
completion:nil];
[self.backspaceHandler performClearAction];
}
- (void)onTapSend {
NSLog(@"点击:发送");
[[KBMaiPointReporter sharedReporter] reportClickWithEventName:@"click_keyboard_function_send_btn"
pageId:@"keyboard_function_panel"
elementId:@"send_btn"
extra:nil
completion:nil];
[[KBBackspaceUndoManager shared] registerNonClearAction];
// App
UIInputViewController *ivc = KBFindInputViewController(self);