| CLASS info |
| public abstract class DataCallback |
| Represents the callback for data sending/receiving status. |
| Constructor |
| public DataCallback() Creates a DataCallback object. |
| Return Type | Method |
| abstract void | onReceived(String endpointId, Data data) Returns an instance of Data. |
| abstract void | onTransferUpdate(String endpointId, TransferStateUpdate update) Called to obtain the data sending or receiving status. |
| Constructor |
| public DataCallback () |
| Creates a DataCallback object. |
| Method |
| public abstract void onReceived(String endpointId, Data data) |
| Returns an instance of Data. |
Parameters
| Parameter name | Parameter desc |
| endpointId | ID of a remote endpoint. |
| data | Abstract data packet. |
| Method |
| public abstract void onTransferUpdate(String endpointId, TransferStateUpdate update) |
| Called to obtain the data sending or receiving status. |
Parameters
| Parameter name | Parameter desc |
| endpointId | ID of a remote endpoint. |
| update | Data transfer status |