freesmartphone.org Framework DBus Interface Specification
org.freesmartphone.Device.Orientation
Description
This interface provides access to the device's physical orientation.
Namespace
org.freesmartphone.Device.Orientation
Methods
Signals
Errors
None
Methods
Description: Returns information about the orientation hardware.
Returns
a{sv}: infoInformation about the orientation hardware. Expected tuples:
- "name":string. The name of the orientation device.
- "type":string. The type of the orientation device (accelerometer, compass).
- "accuracy":string. The accuracy of the orientation device.
- "features":string. The features of the orientation device.
Description: Returns the orientation of the device.
Returns
s: orientationThe orientation. Expected substrings are:
- "flat" (Laying flat on a level surface, e.g. a table),
- "held" (Being held slightly tilt towards your face),
- "portrait" (Display held with the long side vertically),
- "landscape" (Display held with the long side horizontally,
- "faceup" (Display being oriented towards the sky),
- "facedown" (Display being oriented towards the floor),
- "normal", (Not rotated)
- "reverse", (180 degrees rotated)
Signals
Description: Sent whenever there is a change of the device orientation.
Parameters
s: orientationThe new orientation. See GetOrientation for supported values.
| Specified 2008-2009 by the Freesmartphone.org team. | Join us and discuss further drafts smartphones-standards (at) linuxtogo (dot) org