Sensor for accessing device orientation.
More...
#include <orientationsensor.h>
Sensor for accessing device orientation.
Provides device orientation based on the direction of acceleration vector. Threshold value (mG) is used to control the sensitivity of change from one orientation into another. See OrientationInterpreter for details on threshold.
Definition at line 48 of file orientationsensor.h.
◆ OrientationSensorChannel()
OrientationSensorChannel::OrientationSensorChannel |
( |
const QString & |
id | ) |
|
|
protected |
◆ ~OrientationSensorChannel()
virtual OrientationSensorChannel::~OrientationSensorChannel |
( |
| ) |
|
|
protectedvirtual |
◆ factoryMethod()
static AbstractSensorChannel * OrientationSensorChannel::factoryMethod |
( |
const QString & |
id | ) |
|
|
inlinestatic |
◆ orientation()
Unsigned OrientationSensorChannel::orientation |
( |
| ) |
const |
|
inline |
Property method returning current orientation.
- Returns
- Current orientation.
Definition at line 73 of file orientationsensor.h.
◆ orientationChanged
void OrientationSensorChannel::orientationChanged |
( |
const int & |
orientation | ) |
|
|
signal |
Sent whenever orientation interpretation has changed.
- Parameters
-
orientation | New orientation. |
◆ start
bool OrientationSensorChannel::start |
( |
| ) |
|
|
slot |
◆ stop
bool OrientationSensorChannel::stop |
( |
| ) |
|
|
slot |
◆ orientation
Unsigned OrientationSensorChannel::orientation |
|
read |
The documentation for this class was generated from the following file: