public interface AddServiceListener extends GenericListener_Void<AddServiceListener.ServiceAddEvent>
BleServer.setListener_ServiceAdd(AddServiceListener)
.Modifier and Type | Interface and Description |
---|---|
static class |
AddServiceListener.ServiceAddEvent
Event struct passed to
onEvent(ServiceAddEvent) to give you information about the success
of a service addition or the reason(s) for its failure. |
static class |
AddServiceListener.Status
Enumeration of the different ways that service addition can fail (and one way for it to succeed),
provided through
OutgoingListener.OutgoingEvent.status() . |
Modifier and Type | Method and Description |
---|---|
void |
onEvent(AddServiceListener.ServiceAddEvent e)
Called when a service has finished being added or failed to be added.
|
void onEvent(AddServiceListener.ServiceAddEvent e)
onEvent
in interface GenericListener_Void<AddServiceListener.ServiceAddEvent>