Widget Reload method

I read that there is an reload method that you can implement in a widget. And that when you log in (switch users) this method is called for all widgets. Does anyone know which method you have to implement?
2 answers

There is an undocumented reload method, called on every widget that implements a 'reload' method after login. However this will not work for mobile, and since it is not documented, it could be subject to change in future releases.

The best way to be informed when a new user logs in would be to connect to the session's startup method:

this.connect(mx.session, "startup", function() {
    // do something

It is not exactly the same but you can use the addOnLoad.