public static class ServerConnectListener.ConnectEvent extends Event
Modifier and Type | Method and Description |
---|---|
ServerReconnectFilter.ConnectFailEvent |
failEvent()
Returns the
ServerReconnectFilter.ConnectFailEvent instance. |
boolean |
isRetrying()
Convenience method to check if this connection is going to be retried or not.
|
java.lang.String |
macAddress() |
BleServer |
server() |
boolean |
wasSuccess()
Returns
true if a connection was established to the device with macAddress() . |
public final BleServer server()
public final java.lang.String macAddress()
public final ServerReconnectFilter.ConnectFailEvent failEvent()
ServerReconnectFilter.ConnectFailEvent
instance. This will be null
if
wasSuccess()
returns true
.public final boolean wasSuccess()
true
if a connection was established to the device with macAddress()
. At this point, the device is connected,
and ready to be communicated with. If this returns false
, you can retrieve failure information
by calling failEvent()
.public final boolean isRetrying()
BleServer.is(String, BleServerState)
, with
macAddress()
, and BleServerState.RETRYING_CONNECTION
.