Interface CTNetworkReceiver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function that is fired when data is received from the network
An example receiver that just prints the data received would look like this:
(data, context) => println(data.getAsString());
- DocParam:
- this receiver
-
Method Summary
Modifier and TypeMethodDescriptionvoidreceive(IData data, CTNetworkContext context) Acts on the received data.
-
Method Details
-
receive
Acts on the received data.- Parameters:
data- The data that was received.context- information related to the received data.
-