touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #121238
[Bug 1349231] Re: Sensor APIs do not work
I can confirm on ubuntu touch that FaceUp and FaceDown are not being
handled or signaled when they should be (qtubuntu-sensors orientation
does not even handle it)
As well, there is no implementation for AmbientLight in qtubuntu-
sensors.
--
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:
Confirmed
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