|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.util.ObservableEventSourceImpl<Sample>
de.unikassel.android.sdcframework.devices.AbstractSensorDeviceScanner
de.unikassel.android.sdcframework.devices.SampleReceivingDeviceScanner
de.unikassel.android.sdcframework.devices.BluetoothDeviceScanner
public class BluetoothDeviceScanner
Implementation of the bluetooth sensor device scanner.
Field Summary | |
---|---|
private BluetoothAdapter |
bluetoothAdapter
The bluetooth adapter |
Fields inherited from class de.unikassel.android.sdcframework.devices.SampleReceivingDeviceScanner |
---|
lastScanFinished, receiver, worker |
Constructor Summary | |
---|---|
BluetoothDeviceScanner()
Constructor |
Method Summary | |
---|---|
void |
doHandleScanResults(Intent intent)
Handler for the device scan results |
boolean |
doStartDeviceScan()
Method to start a device scan |
void |
doStopDeviceScan()
Method to stop a device scan which is called if scanner is stopped while a scan is ongoing |
protected IntentFilter |
getIntentFilter()
Getter for intent filter used by the broadcast receiver |
protected boolean |
isCompatibleDevice(SensorDevice device)
Validation method for a compatible device type |
void |
onDestroy(Context context)
Is called when the owner destroys this scanner |
Methods inherited from class de.unikassel.android.sdcframework.devices.SampleReceivingDeviceScanner |
---|
isLastScanFinished, setLastScanFinished, start, stop |
Methods inherited from class de.unikassel.android.sdcframework.devices.AbstractSensorDeviceScanner |
---|
enable, getDevice, isActive, isEnabled, setActive, setDevice |
Methods inherited from class de.unikassel.android.sdcframework.util.ObservableEventSourceImpl |
---|
getObservers, hasObservers, notify, onObserverRegistration, onObserverUnregistration, registerEventObserver, removeAllObservers, unregisterEventObserver |
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.util.facade.ObservableEventSource |
---|
hasObservers, notify |
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ObserverRegistration |
---|
registerEventObserver, removeAllObservers, unregisterEventObserver |
Field Detail |
---|
private final BluetoothAdapter bluetoothAdapter
Constructor Detail |
---|
public BluetoothDeviceScanner()
Method Detail |
---|
protected boolean isCompatibleDevice(SensorDevice device)
AbstractSensorDeviceScanner
isCompatibleDevice
in class AbstractSensorDeviceScanner
device
- the device to test for compatibilityprotected IntentFilter getIntentFilter()
SampleReceivingDeviceScanner
getIntentFilter
in class SampleReceivingDeviceScanner
public void doHandleScanResults(Intent intent)
SampleReceivingDeviceScanner
doHandleScanResults
in class SampleReceivingDeviceScanner
intent
- the broadcast intent to handlepublic boolean doStartDeviceScan()
SampleReceivingDeviceScanner
doStartDeviceScan
in class SampleReceivingDeviceScanner
public void doStopDeviceScan()
SampleReceivingDeviceScanner
doStopDeviceScan
in class SampleReceivingDeviceScanner
public void onDestroy(Context context)
SensorDeviceScanner
onDestroy
in interface SensorDeviceScanner
onDestroy
in class SampleReceivingDeviceScanner
context
- the application context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |