custom onTimer event, if not null, it should be called before doing anything else in timerEvent
See Implementation
custom onTimer event, if not null, it should be called before doing anything else in timerEvent