Widget Reload method

0
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?
asked
2 answers
2

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
});
answered
0

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

answered