setTimingConfig

fun setTimingConfig(warn1: Long, warn2: Long, lockAfter: Long, lockTime: Long, inactivity: Long, returnGrace: Long, reentryEarly: Long, graceBonus: Long)(source)

Configures timing parameters for warnings and locks.

Parameters

warn1

Milliseconds before showing first warning (default: 10 minutes)

warn2

Milliseconds after warn1 before showing second warning (default: 5 minutes)

lockAfter

Milliseconds after warn2 before locking (default: 5 minutes)

lockTime

Duration of lock in milliseconds (default: 15 minutes)

inactivity

Milliseconds of inactivity before resetting (default: 90 seconds)

returnGrace

Milliseconds away before considering it a real break (default: 2 minutes)

reentryEarly

Milliseconds threshold for early reentry detection (default: 2 minutes)

graceBonus

Duration of one-minute unlock grace period (default: 60 seconds)