activeWithin
Stentor API Reference / stentor-time/src / activeWithin
Function: activeWithin()
activeWithin(
context,amount,format):boolean
Defined in: packages/stentor-time/src/TimeConditionalCheck.ts:19
Depending on the provided last active timestamp and current time, has the user been active within the specified duration.
Parametersβ
contextβ
Contains the last active timestamp
lastActiveTimestampβ
number | undefined
amountβ
number
Duration amount
formatβ
DurationFormat
Format of the duration amount
Returnsβ
boolean