public class ESenseScanner
extends android.bluetooth.le.ScanCallback
Modifier | Constructor and Description |
---|---|
protected |
ESenseScanner(java.lang.String name,
android.bluetooth.BluetoothManager bluetoothManager,
java.util.concurrent.CountDownLatch deviceFoundLatch)
Constructs an eSense scanner
|
Modifier and Type | Method and Description |
---|---|
protected android.bluetooth.BluetoothDevice |
getDevice()
Gets the BluetoothDevice object.
|
protected boolean |
isScanning()
Checks if scanning is being performed.
|
void |
onScanResult(int callbackType,
android.bluetooth.le.ScanResult result) |
protected void |
scan()
Performs eSense scanning
|
protected void |
stopScan()
Stops eSense scanning
|
protected ESenseScanner(java.lang.String name, android.bluetooth.BluetoothManager bluetoothManager, java.util.concurrent.CountDownLatch deviceFoundLatch)
name
- name of the eSense device to look for during a scanbluetoothManager
- BluetoothManager objectdeviceFoundLatch
- CountDownLatch objectprotected void scan()
public void onScanResult(int callbackType, android.bluetooth.le.ScanResult result)
onScanResult
in class android.bluetooth.le.ScanCallback
protected void stopScan()
protected boolean isScanning()
true
if scanning is being performed
false
otherwiseprotected android.bluetooth.BluetoothDevice getDevice()