java.lang.Object | |
↳ | android.bluetooth.le.ScanCallback |
Bluetooth LE scan callbacks. Scan results are reported using these callbacks.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | SCAN_FAILED_ALREADY_STARTED | Fails to start scan as BLE scan with the same settings is already started by the app. | |||||||||
int | SCAN_FAILED_APPLICATION_REGISTRATION_FAILED | Fails to start scan as app cannot be registered. | |||||||||
int | SCAN_FAILED_FEATURE_UNSUPPORTED | Fails to start power optimized scan as this feature is not supported. | |||||||||
int | SCAN_FAILED_INTERNAL_ERROR | Fails to start scan due an internal error |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Callback when batch results are delivered.
| |||||||||||
Callback when scan could not be started.
| |||||||||||
Callback when a BLE advertisement has been found.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Fails to start scan as BLE scan with the same settings is already started by the app.
Fails to start scan as app cannot be registered.
Fails to start power optimized scan as this feature is not supported.
Fails to start scan due an internal error
Callback when batch results are delivered.
results | List of scan results that are previously scanned. |
---|
Callback when scan could not be started.
errorCode | Error code (one of SCAN_FAILED_*) for scan failure. |
---|
Callback when a BLE advertisement has been found.
callbackType | Determines how this callback was triggered. Currently could only be
CALLBACK_TYPE_ALL_MATCHES . |
---|---|
result | A Bluetooth LE scan result. |