public interface OutgoingListener extends ExchangeListener, GenericListener_Void<OutgoingListener.OutgoingEvent>
IncomingListener.Please
such as
IncomingListener.Please.respondWithSuccess(OutgoingListener)
, or BleServer.setListener_Outgoing(OutgoingListener)
,
or BleManager.setListener_Outgoing(OutgoingListener)
. Also used to callback the success or failure of
notifications through BleServer.sendNotification(String, UUID, UUID, FutureData, OutgoingListener)
,
BleServer.sendIndication(String, UUID, UUID, FutureData, OutgoingListener)
, or various overloads thereof.Modifier and Type | Interface and Description |
---|---|
static class |
OutgoingListener.OutgoingEvent
Struct passed to
onEvent(OutgoingEvent)
that provides details of what was sent to the client and if it succeeded. |
static class |
OutgoingListener.Status
Enumeration of the various success and error statuses possible for an outgoing message.
|
ExchangeListener.ExchangeEvent, ExchangeListener.Target, ExchangeListener.Type
Modifier and Type | Method and Description |
---|---|
void |
onEvent(OutgoingListener.OutgoingEvent e)
Called when a notification or a response to a request is fulfilled or failed.
|
void onEvent(OutgoingListener.OutgoingEvent e)
onEvent
in interface GenericListener_Void<OutgoingListener.OutgoingEvent>