Custom work on invisibility timeout

Hi Guys,

Sorry if there is something on this, I can’t see it.

I’d like to do a little custom work when there is an invisibility timeout. How do I, or can I, extend this so I can do my own work when it occurs?

Thanks,
Tim