@FunctionalInterface public static interface ConnectionManager.ConnectionListener<T extends NetworkContext<T>>
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionChange(T nc,
boolean isConnected)
Callback which is triggered on connection state change: connect or disconnect.
|
void onConnectionChange(T nc, boolean isConnected)
nc - Network context.isConnected - true for connect events, false for disconnects.Copyright © 2023. All rights reserved.