public class BleScanChannel extends ScanChannel
Modifier and Type | Class and Description |
---|---|
static interface |
BleScanChannel.BleScanCallback |
mHandler, mScanning, mTimeout
Constructor and Description |
---|
BleScanChannel(android.content.Context context,
java.util.List<android.bluetooth.le.ScanFilter> scanFilters,
int timeout) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
setOnBleScanCallback(BleScanChannel.BleScanCallback onBleScanCallback) |
void |
setTimeout(int timeout) |
void |
startScan() |
void |
stopScan() |
setOnScanBehaviorStopCallback
public BleScanChannel(android.content.Context context, java.util.List<android.bluetooth.le.ScanFilter> scanFilters, int timeout)
context
- The mContext of this applicationtimeout
- Timeout of mScanning progress. The Scan behavior will stop after mTimeout>
public void setOnBleScanCallback(BleScanChannel.BleScanCallback onBleScanCallback)
public void startScan()
startScan
in class ScanChannel
public void stopScan()
stopScan
in class ScanChannel
public void destroy()
destroy
in class ScanChannel
public void setTimeout(int timeout)
setTimeout
in class ScanChannel