java.lang.Object |
↳ |
com.android.phone.AccelerometerListener |
Class Overview
This class is used to listen to the accelerometer to monitor the
orientation of the phone. The client of this class is notified when
the orientation changes between horizontal and vertical.
Summary
Nested Classes |
interface |
AccelerometerListener.OrientationListener |
|
Public Methods |
void
|
enable(boolean enable)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
int
ORIENTATION_HORIZONTAL
Constant Value:
2
(0x00000002)
public
static
final
int
ORIENTATION_UNKNOWN
Constant Value:
0
(0x00000000)
public
static
final
int
ORIENTATION_VERTICAL
Constant Value:
1
(0x00000001)
Public Constructors
Public Methods
public
void
enable
(boolean enable)