|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface SensorDeviceScanner
Interface for sensor any device scanner type. A scanner is responsible to receive samples from a sensor device in the configured frequency and can be observed for the provided sensor samples.
| Method Summary | |
|---|---|
boolean |
enable(boolean enable,
Context context)
Does set the enabled state for the scanner. |
SensorDevice |
getDevice()
Getter for the sensor device |
boolean |
isEnabled()
Getter for the enabled state |
void |
onDestroy(Context context)
Is called when the owner destroys this scanner |
void |
setDevice(SensorDevice device,
Context context)
Setter for the sensor device |
boolean |
start(Context context)
Does start sampling |
boolean |
stop(Context context)
Does stop sampling |
| Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ObservableEventSource |
|---|
hasObservers, notify |
| Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ObserverRegistration |
|---|
registerEventObserver, removeAllObservers, unregisterEventObserver |
| Method Detail |
|---|
boolean start(Context context)
context - the application context
boolean stop(Context context)
context - the application context
boolean enable(boolean enable,
Context context)
enable - enabled state for the scanner to setcontext - the application context
boolean isEnabled()
void setDevice(SensorDevice device,
Context context)
device - the sensor device to setcontext - the application contextSensorDevice getDevice()
void onDestroy(Context context)
context - the application context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||