public abstract class LeScanner
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected LeScanCallback |
mLeScanCallback |
protected android.os.Handler |
mScanHandler |
protected ScanRuleConfig |
mScanRuleConfig |
| Modifier | Constructor and Description |
|---|---|
protected |
LeScanner(android.bluetooth.BluetoothAdapter bluetoothAdapter,
ScanRuleConfig config,
LeScanCallback callback) |
| Modifier and Type | Method and Description |
|---|---|
static LeScanner |
createScanner(android.bluetooth.BluetoothAdapter bluetoothAdapter,
ScanRuleConfig config,
LeScanCallback callback) |
void |
destroy() |
protected android.bluetooth.BluetoothAdapter |
getBluetoothAdapter() |
protected boolean |
isBluetoothOn() |
void |
scanLeDevice(boolean enable) |
protected abstract void |
startScan() |
protected abstract void |
stopScan() |
protected final ScanRuleConfig mScanRuleConfig
protected final LeScanCallback mLeScanCallback
protected final android.os.Handler mScanHandler
protected LeScanner(android.bluetooth.BluetoothAdapter bluetoothAdapter,
ScanRuleConfig config,
LeScanCallback callback)
public static LeScanner createScanner(android.bluetooth.BluetoothAdapter bluetoothAdapter, ScanRuleConfig config, LeScanCallback callback)
public void scanLeDevice(boolean enable)
public void destroy()
protected abstract void startScan()
protected abstract void stopScan()
protected android.bluetooth.BluetoothAdapter getBluetoothAdapter()
protected boolean isBluetoothOn()