1 Reply Latest reply on Aug 21, 2011 12:48 PM by Francisc

    Get current View in ViewNavigatorApplication

    Francisc Level 3

      Hello,

       

      How can I get the name of the Class for the current view in a ViewNavigatorApplication, please?

       

      Thank you.

        • 1. Re: Get current View in ViewNavigatorApplication
          Francisc Level 3

          OK, this is what I've done,I'm not sure if it's the best way.

          Also, I have not been able to find a way to compare navigator.activeView to navigator.firstView.

           

          private function currentViewIsFirstView():Boolean
          {
                  if(navigator.activeView.className.toLowerCase()=='name_of_first_view_class'){return true;}
                  return false;
          }

           

          I'm doing this so I can exit the NativeApplication when the Back Button (Android) is pressed on the first view.