public abstract class LeScanner
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected LeScanCallback |
mLeScanCallback |
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() |
LeScanState |
getScanState() |
protected boolean |
isBluetoothOn() |
boolean |
isScanning() |
protected void |
postToWorkerThread(boolean isRemovePending,
java.lang.Runnable r) |
void |
scanLeDevice(boolean enable) |
protected abstract void |
startScan() |
protected abstract void |
stopScan() |
protected final ScanRuleConfig mScanRuleConfig
protected final LeScanCallback mLeScanCallback
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 void postToWorkerThread(boolean isRemovePending,
java.lang.Runnable r)
protected abstract void startScan()
protected abstract void stopScan()
protected android.bluetooth.BluetoothAdapter getBluetoothAdapter()
protected boolean isBluetoothOn()
public LeScanState getScanState()
public boolean isScanning()