Page onLoad and onUnload events?

How do you capture events when, through the router, the current page is unshown and a new page is shown?

Something to do with this? There doesn’t seem to be any examples:
Router.HistoryChanged Event

There are Activated and Deactivated triggers.