Results 1 to 2 of 2

Thread: Chances of using Sensor using sencha Touch

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    10
    Vote Rating
    0
      0  

    Default Chances of using Sensor using sencha Touch

    Hello,

    As most of the devices are quipped with high accuracy sensors and in native development there are very simple API to use it.

    1> How can i find which sensors are available in device using Sencha Touch ?
    2> If yes, then are there any api for using sensor to get Information from sensor by sencha Touch ?

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Vote Rating
    100
      0  

    Default

    I posted this in your other topic.
    Quote Originally Posted by jerome76 View Post
    You can try using
    Code:
    window.outerHeight
    //and
    window.outerWidth
    Also, this helped me out: http://docs.sencha.com/touch/2-0/#!/guide/environment_package

    As for determining the device metrics, that would most likely be done with the native API.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •