public interface FailCallback
| Modifier and Type | Field and Description |
|---|---|
static int |
REASON_BLUETOOTH_DISABLED |
static int |
REASON_CANCELLED |
static int |
REASON_DEVICE_DISCONNECTED |
static int |
REASON_DEVICE_NOT_SUPPORTED |
static int |
REASON_NULL_ATTRIBUTE |
static int |
REASON_REQUEST_FAILED |
static int |
REASON_TIMEOUT |
static int |
REASON_VALIDATION |
| Modifier and Type | Method and Description |
|---|---|
void |
onRequestFailed(android.bluetooth.BluetoothDevice device,
int status)
A callback invoked when the request has failed with status other than
BluetoothGatt.GATT_SUCCESS. |
static final int REASON_DEVICE_DISCONNECTED
static final int REASON_DEVICE_NOT_SUPPORTED
static final int REASON_NULL_ATTRIBUTE
static final int REASON_REQUEST_FAILED
static final int REASON_TIMEOUT
static final int REASON_VALIDATION
static final int REASON_CANCELLED
static final int REASON_BLUETOOTH_DISABLED
void onRequestFailed(@NonNull
android.bluetooth.BluetoothDevice device,
int status)
BluetoothGatt.GATT_SUCCESS.device - target device.status - error status code, one of BluetoothGatt#GATT_* constants or
REASON_DEVICE_DISCONNECTED, REASON_TIMEOUT,
REASON_DEVICE_NOT_SUPPORTED (only for Connect request),
REASON_BLUETOOTH_DISABLED, REASON_NULL_ATTRIBUTE,
REASON_VALIDATION, REASON_CANCELLED
or REASON_REQUEST_FAILED (for other reason).