Fields Summary |
---|
public static final int | TYPE_ACCELEROMETERA constant describing an accelerometer sensor type.
See {@link android.hardware.SensorEvent SensorEvent}
for more details. |
public static final int | TYPE_MAGNETIC_FIELDA constant describing a magnetic field sensor type.
See {@link android.hardware.SensorEvent SensorEvent}
for more details. |
public static final int | TYPE_ORIENTATIONA constant describing an orientation sensor type.
See {@link android.hardware.SensorEvent SensorEvent}
for more details. |
public static final int | TYPE_GYROSCOPEA constant describing a gyroscope sensor type |
public static final int | TYPE_LIGHTA constant describing a light sensor type |
public static final int | TYPE_PRESSUREA constant describing a pressure sensor type |
public static final int | TYPE_TEMPERATUREA constant describing a temperature sensor type |
public static final int | TYPE_PROXIMITYA constant describing a proximity sensor type |
public static final int | TYPE_ALLA constant describing all sensor types. |
private String | mName |
private String | mVendor |
private int | mVersion |
private int | mHandle |
private int | mType |
private float | mMaxRange |
private float | mResolution |
private float | mPower |
private int | mLegacyType |
Methods Summary |
---|
int | getHandle()
return mHandle;
|
int | getLegacyType()
return mLegacyType;
|
public float | getMaximumRange()
return mMaxRange;
|
public java.lang.String | getName()
return mName;
|
public float | getPower()
return mPower;
|
public float | getResolution()
return mResolution;
|
public int | getType()
return mType;
|
public java.lang.String | getVendor()
return mVendor;
|
public int | getVersion()
return mVersion;
|
void | setLegacyType(int legacyType)
mLegacyType = legacyType;
|
void | setRange(float max, float res)
mMaxRange = max;
mResolution = res;
|