Mountain View
Jabber SDK API Documentation

Tutorial: Handle Sign In States

Handle Sign In States

Handle Sign In States Here we'll cover how to know at which state of sign in process we are at any give time, as this is crucial from UI (User Interface) perspective. We'll have to add following event handlers:

        function onSignedOut()
        {
            // Handle Event here...
        }

        function onSigningOut()
        {
            // Handle Event here...
        }

        function onSignedIn()
        {
            // Handle Event here...
        }

        function onSingingIn()
        {
            // Handle Event here...
        }

        function onServiceDiscovering()
        {
            // Handle Event here...
        }

        function onDataResetting()
        {
            // Handle Event here...
        }

        cwic.LoginController.addEventHandler('onSignedOut', onSignedOut);
        cwic.LoginController.addEventHandler('onSigningOut', onSigningOut);
        cwic.LoginController.addEventHandler('onSignedIn', onSignedIn);
        cwic.LoginController.addEventHandler('onSingingIn', onSigningIn);
        cwic.LoginController.addEventHandler('onServiceDiscovering', onServiceDiscovering);
        cwic.LoginController.addEventHandler('onDataResetting', onDataResetting);
    

Next

Previous