← Back to team overview

touch-packages team mailing list archive

[Bug 1349231] Re: Sensor APIs do not work

 

** Changed in: qtcreator-plugin-ubuntu (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtubuntu-sensors in
Ubuntu.
https://bugs.launchpad.net/bugs/1349231

Title:
  Sensor APIs do not work

Status in “qtcreator-plugin-ubuntu” package in Ubuntu:
  Invalid
Status in “qtubuntu-sensors” package in Ubuntu:
  New

Bug description:
   OrientationSensor {
              onReadingChanged: {
                  if ( reading.orientation === OrientationReading.TopUp) {
                      console.log("TopUp")
                  } else if ( reading.orientation === OrientationReading.TopDown) {
                      console.log("TopDown")
                  } else if ( reading.orientation === OrientationReading.LeftUp) {
                      console.log("LeftUp")
                  } else if ( reading.orientation === OrientationReading.RightUp) {
                      console.log("RightUp")
                  } else if ( reading.orientation === OrientationReading.FaceDown) {
                      console.log("FaceDown")
                  }  else if ( reading.orientation === OrientationReading.FaceUp) {
                      console.log("FaceUp")
                  }
              }
          }

  The "FaceDown" and "FaceUp" events are never fired. Also

         AmbientLightSensor {
              active: true
              onReadingChanged: {
                  if (reading.lightLevel === AmbientLightReading.Dark) {
                      console.log("It is dark")
                  }  else if ( reading.lightLevel === AmbientLightReading.Twilight) {
                      console.log("It is moderately dark")
                  } else if ( reading.lightLevel === AmbientLightReading.Light) {
                      console.log("It is light (eg. internal lights)")
                  } else if ( reading.lightLevel === AmbientLightReading.Bright) {
                      console.log("It is bright (eg. shade)")
                  } else if ( reading.lightLevel === AmbientLightReading.Sunny) {
                      console.log("It is very bright (eg. direct sunlight)")
                  }else if ( reading.lightLevel === AmbientLightReading.Undefined) {
                      console.log("It is unknown")
                  }
              }
          }

  Only "AmbientLightReading.Light" is fired no matter how the ambient
  light environment is changed.

  Thanks & best regards,
  XiaoGuo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1349231/+subscriptions