-
@FunctionalInterface() public interface FailCallback
-
-
Method Summary
Modifier and Type Method Description abstract voidonRequestFailed(@NonNull() BluetoothDevice device, int status)A callback invoked when the request has failed with status other than GATT_SUCCESS. -
-
Method Detail
-
onRequestFailed
abstract void onRequestFailed(@NonNull() BluetoothDevice device, int status)
A callback invoked when the request has failed with status other than GATT_SUCCESS.
- Parameters:
device- target device.status- error status code, one of BluetoothGatt#GATT_* constants orREASON_DEVICE_DISCONNECTED, REASON_TIMEOUT,REASON_DEVICE_NOT_SUPPORTED (only for Connect request),REASON_BLUETOOTH_DISABLED, REASON_NULL_ATTRIBUTE,REASON_VALIDATION, REASON_CANCELLED, REASON_NOT_ENABLED or REASON_REQUEST_FAILED (for other reason).
-
-
-
-