Kofax Mobile SDK API Reference
|
This event fires when the orientation of the device changes. More...
Public Member Functions | |
LevelnessEvent (Object source, int pitch, int roll) | |
int | getPitch () |
Returns in degrees the current pitch of the phone. More... | |
int | getRoll () |
Returns in degrees the current roll of the phone. More... | |
This event fires when the orientation of the device changes.
This event fires when the orientation of the device changes. It contains two properties, pitch and roll, which represent the orientation of the phone along the y-axis and x-axis respectively. These properties are returned in degrees.
LevelnessEvent | ( | Object | source, |
int | pitch, | ||
int | roll | ||
) |
int getPitch | ( | ) |
Returns in degrees the current pitch of the phone.
int getRoll | ( | ) |
Returns in degrees the current roll of the phone.