public interface GatewayListener
Gateway
implementation.Modifier and Type | Method and Description |
---|---|
void |
onConnected()
Invoked by the observed
Gateway instance when it establishes a connection to the server. |
void |
onDataReceived(InputStream stream)
Invoked by the observed
Gateway instance when it receives new data from the server. |
void |
onDisconnected(Exception ex)
Invoked by the observed
Gateway instance when it's connection to the server is dropped. |
void onDataReceived(InputStream stream)
Gateway
instance when it receives new data from the server.stream
- The InputStream
containing the received data.void onConnected()
Gateway
instance when it establishes a connection to the server.Copyright © 2013–2023. All rights reserved.