Java android.view OrientationEventListener fields, constructors, methods, implement or subclass

Example usage for Java android.view OrientationEventListener fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view OrientationEventListener.

The text is from its open source code.

Field

intORIENTATION_UNKNOWN
Returned from onOrientationChanged when the device orientation cannot be determined (typically when the device is in a close to flat position).

Constructor

OrientationEventListener(Context context)
Creates a new OrientationEventListener.
OrientationEventListener(Context context, int rate)
Creates a new OrientationEventListener.

Method

booleancanDetectOrientation()
voidenable()
Enables the OrientationEventListener so it will monitor the sensor and call #onOrientationChanged when the device orientation changes.