Example usage for Java android.view OrientationEventListener fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ORIENTATION_UNKNOWN Returned from onOrientationChanged when the device orientation cannot be determined (typically when the device is in a close to flat position). |
OrientationEventListener(Context context) Creates a new OrientationEventListener. | |
OrientationEventListener(Context context, int rate) Creates a new OrientationEventListener. |
boolean | canDetectOrientation() |
void | enable() Enables the OrientationEventListener so it will monitor the sensor and call #onOrientationChanged when the device orientation changes. |