public interface WriteListener
Modifier and Type | Interface and Description |
---|---|
static class |
WriteListener.WriteResponse
Object representing response from device after writing characteristic
|
Modifier and Type | Field and Description |
---|---|
static WriteListener |
NOOP_LISTENER
The NOOP Listener (No-Operation) is set when the reference to WriteListener in Overwriting methods
is no longer needed.
|
Modifier and Type | Method and Description |
---|---|
void |
onWriteFailure(ErrorCause cause)
Invoked when characteristics manipulation failed.
|
void |
onWriteSuccess(WriteListener.WriteResponse response)
Invoked when characteristic manipulation succeed.
|
static final WriteListener NOOP_LISTENER
void onWriteSuccess(WriteListener.WriteResponse response)
WriteListener.WriteResponse
responseresponse
- from device, might be nullvoid onWriteFailure(ErrorCause cause)
cause
- ErrorCause