IOS-M3-03 实现阅读事件本地收集 #31
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
iOS 侧实现阅读事件生命周期管理和本地暂存。
对应 zhixi-document-runtime #20 IOS-DOC-003。
完成情况
已完成 ✅
Features/MaterialReader/ReadingEventCollector.swift— 单例事件收集器open(materialId:)— MaterialOpened + 启动 15s 心跳close(materialId:)— MaterialClosed(含 active_seconds)updatePosition(materialId:position:)— 2s 防抖 PositionChangedmarkAsRead(materialId:)— MarkedAsReadexportPending() → [ReadingEvent]clearExported(count:)MaterialReaderView集成:.onAppear/.onDisappear生命周期事件待完成
/reading/eventsAPI(需要后端接口)关闭
ReadingEventCollector 已实现。