Skip to main content

activeWithin

Stentor API Reference


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

amount​

number

Duration amount

format​

DurationFormat

Format of the duration amount

Returns​

boolean