Package 

Interface FailCallback

    • Method Summary

      Modifier and Type Method Description
      abstract void onRequestFailed(@NonNull() BluetoothDevice device, int status) A callback invoked when the request has failed with status other than GATT_SUCCESS.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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).