0 Replies Latest reply on Nov 16, 2010 5:21 AM by _SR_

    Detecting Environment (Desktop/Mobile)

    _SR_

      Hi guys,

       

      I'm creating a single code base (framework) for AIR development, for both desktop and mobile applications, and I need to determine (at runtime) if the application is running on a desktop or mobile device.

       

      Will the NativeWindow.isSupported value will always be true for desktop applications, and false for mobile device applications? Are there any known runtime environments that would cause a problem if I used that value for desktop/mobile detection?

       

      I believe the Capabilities.playerType value is always Desktop within an AIR application regardless of the OS/device.

       

      Thanks.