|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.devices.AbstractSensorDevice
de.unikassel.android.sdcframework.devices.ScannerStateAwareSensorDevice
de.unikassel.android.sdcframework.devices.AbstractAndroidSensorDevice
de.unikassel.android.sdcframework.devices.AccelerometerDevice
public class AccelerometerDevice
Implementation of the accelerometer sensor device.
Field Summary | |
---|---|
private AccelerometerSampleData |
currentSampleData
The actual sample of the device, updated whenever the handler for sensor changes is called |
private boolean |
hasSample
Flag if sample available |
Constructor Summary | |
---|---|
AccelerometerDevice(Context context)
Constructor |
Method Summary | |
---|---|
void |
doHandleSensorChanged(SensorEvent event)
Handler for the sensor changed event ( with incoming updated sensor data ) |
protected SampleData |
getCurrentSampleData()
Getter for the current sample data |
boolean |
hasSample()
Test method for a sample available |
Methods inherited from class de.unikassel.android.sdcframework.devices.AbstractAndroidSensorDevice |
---|
doHandleSensorAccuracyChanged, doSignalDeviceNotEnabledInSystem, getListener, getSample, getSensor, isDeviceInSystemEnabled, onScannerRunningStateChange |
Methods inherited from class de.unikassel.android.sdcframework.devices.ScannerStateAwareSensorDevice |
---|
enableDeviceScanning, onConfigurationChanged |
Methods inherited from class de.unikassel.android.sdcframework.devices.AbstractSensorDevice |
---|
accept, doHandleDeviceDisabledBySystem, doHandleDeviceEnabledBySystem, getConfiguration, getDeviceIdentifier, getScanner, isAirplaneModeOn, isDeviceScanningEnabled, onCreate, onDestroy, setDeviceIdentifier, setScanner, updateConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final AccelerometerSampleData currentSampleData
private boolean hasSample
Constructor Detail |
---|
public AccelerometerDevice(Context context)
context
- the application contextMethod Detail |
---|
protected final SampleData getCurrentSampleData()
AbstractAndroidSensorDevice
getCurrentSampleData
in class AbstractAndroidSensorDevice
public final void doHandleSensorChanged(SensorEvent event)
AbstractAndroidSensorDevice
doHandleSensorChanged
in class AbstractAndroidSensorDevice
event
- the sensor event to handlepublic final boolean hasSample()
SampleProvidingSensorDevice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |