Description
NOTE: As of Composer Version 7.5.4, Tablet Orientation is no longer available for selection in the Interface Assets (IA) Panel. It can still be used in existing experiences, but Intuiface will no longer deliver updates or bug fixes for this IA.
The Tablet Orientation Interface Asset enables an Intuiface experience to retrieve information about the orientation of an Android tablet using the tablet's gyroscope.
Note:
- Understandably, this interface asset will not provide any information at design time in Intuiface Composer. You have to test it using an Android device.
- Intuiface cannot differentiate between portrait and reverse portrait or between landscape and reverse landscape. In both instances, the pair is recognized as having the same orientation.
Properties, Triggers & Actions
Properties
All of these properties are read-only, meaning you will only see them in a binding panel.
- Alpha angle: the direction indicated by the tablet's compass, in degrees.
- Beta angle: the front-to-back tilt - where front is positive - in degrees
- Gamma angle: the left-to-right tilt - where right is positive - in degrees
- Is landscape: true if the tablet is in landscape mode.
- Is portrait: true if the tablet is in portrait mode.
- Is flat: true if the tablet is detected as "flat", e.g. laying down on a table.
Definition of alpha - beta - gamma angles:
Triggers
Orientation Changed
- Entered flat orientation: Raised when the tablet is rotated into a flat orientation (e.g. laid down on a table).
- Left flat orientation: Raised when the tablet is rotated away from a flat orientation (e.g. lifted from a table to be read).
- Landscape orientation detected: Raised when landscape orientation is detected.
- Portrait orientation detected: Raised when portrait orientation is detected.
Orientation errors
- Error message received: Raised when an error message is received. For example, when the gyroscope of the table isn't available.
- Error Message: this parameter contains the error message that was raised.
Comments
0 comments
Article is closed for comments.