|
||||||||||
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
public abstract class ScannerStateAwareSensorDevice
This class is an extension of the abstract sensor device for such devices,
which have to be aware of the scanner running state. In most cases these are
devices implementing the
SampleProvidingSensorDevice
interface.
AbstractAndroidSensorDevice
,
GSMDevice
,
GPSDevice
Constructor Summary | |
---|---|
ScannerStateAwareSensorDevice(SensorDeviceIdentifier deviceId)
Constructor |
Method Summary | |
---|---|
boolean |
enableDeviceScanning(boolean enabled,
Context context)
Setter for device scanning enabled state |
protected void |
onConfigurationChanged()
Callback to signal configuration of device has changed |
protected abstract void |
onScannerRunningStateChange(boolean isRunning,
Context context)
Handler to react on scanner state changes. |
Methods inherited from class de.unikassel.android.sdcframework.devices.AbstractSensorDevice |
---|
accept, doHandleDeviceDisabledBySystem, doHandleDeviceEnabledBySystem, doSignalDeviceNotEnabledInSystem, 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 |
Methods inherited from interface de.unikassel.android.sdcframework.devices.facade.SensorDevice |
---|
isDeviceInSystemEnabled |
Constructor Detail |
---|
public ScannerStateAwareSensorDevice(SensorDeviceIdentifier deviceId)
deviceId
- the device identifierMethod Detail |
---|
protected void onConfigurationChanged()
AbstractSensorDevice
onConfigurationChanged
in class AbstractSensorDevice
public final boolean enableDeviceScanning(boolean enabled, Context context)
SensorDevice
enableDeviceScanning
in interface SensorDevice
enableDeviceScanning
in class AbstractSensorDevice
enabled
- true to enable device scanning, false to disable itcontext
- the application context
protected abstract void onScannerRunningStateChange(boolean isRunning, Context context)
isRunning
- the current scanner state after state changecontext
- the context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |