addloginListener static method
The LoginListener class provides you with all the real-time updates for the login and logout events
Implementation
static addloginListener(String listenerId, LoginListener listenerClass) {
_loginListeners[listenerId] = listenerClass;
}