Skeudenn / hooks/use-reading-time / useReadingTime
Function: useReadingTime() ​
useReadingTime(
libraryId):void
Defined in: src/hooks/use-reading-time.ts:17
Counts the time during which the book libraryId is open in a visible, focused window, and reports it to the main process every minute or so and when the reader closes. Does nothing for null (no book open, or a book read anonymously, which leaves no trace).
Parameters ​
libraryId ​
string | null
Returns ​
void