|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SensorDevice
Interface for any sensor device type.
Method Summary | |
---|---|
void |
doHandleDeviceDisabledBySystem(Context context)
Default handler for the fact, the system device state is changing from enabled to disabled. |
void |
doHandleDeviceEnabledBySystem(Context context)
Default handler for the fact, the system device state is changing from disabled to enabled. |
boolean |
enableDeviceScanning(boolean enabled,
Context context)
Setter for device scanning enabled state |
SensorDeviceConfiguration |
getConfiguration()
Getter for the sensor device configuration |
SensorDeviceIdentifier |
getDeviceIdentifier()
Getter for the sensors device identifier |
SensorDeviceScanner |
getScanner()
Getter for the scanner |
boolean |
isDeviceInSystemEnabled(Context context)
Test method for the system wide enabled state of the device |
boolean |
isDeviceScanningEnabled()
Getter for device scanning enabled state in the framework |
void |
onCreate(Context context)
Is called when this device is created |
void |
onDestroy(Context context)
Is called when the owner destroys this device |
void |
setScanner(SensorDeviceScanner scanner,
Context context)
Setter for the scanner |
void |
updateConfiguration(SensorDeviceConfiguration configuration,
Context context)
Update method for the device configuration settings |
Methods inherited from interface de.unikassel.android.sdcframework.devices.facade.VisitableDevice |
---|
accept |
Method Detail |
---|
SensorDeviceIdentifier getDeviceIdentifier()
boolean isDeviceScanningEnabled()
boolean enableDeviceScanning(boolean enabled, Context context)
enabled
- true to enable device scanning, false to disable itcontext
- the application context
void updateConfiguration(SensorDeviceConfiguration configuration, Context context)
configuration
- the device configurationcontext
- the application contextvoid setScanner(SensorDeviceScanner scanner, Context context)
scanner
- the scanner to setcontext
- the application contextSensorDeviceScanner getScanner()
SensorDeviceConfiguration getConfiguration()
boolean isDeviceInSystemEnabled(Context context)
context
- the application context
void doHandleDeviceEnabledBySystem(Context context)
context
- the application contextvoid doHandleDeviceDisabledBySystem(Context context)
context
- the application contextvoid onCreate(Context context)
context
- the application contextvoid onDestroy(Context context)
context
- the application context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |