AI-generated Key Takeaways
- 
          PayloadCallback is a listener for incoming and outgoing Payloads between connected endpoints. 
- 
          The onPayloadReceived method is called when a Payload is received from a remote endpoint. 
- 
          The onPayloadTransferUpdate method provides progress information about active Payload transfers. 
Listener for incoming/outgoing Payloads
      between connected endpoints.
Public Constructor Summary
Public Method Summary
| abstract void | 
                  
                  onPayloadReceived(String endpointId,
                  Payload
                  payload)
                   
                    Called when a  Payloadis received from a remote endpoint. | 
| abstract void | 
                  
                  onPayloadTransferUpdate(String endpointId,
                  
                  PayloadTransferUpdate update)
                   
                    Called with progress information about an active Payload transfer, either
                    incoming or outgoing.
                   | 
Inherited Method Summary
Public Constructors
public PayloadCallback ()
Public Methods
public abstract void onPayloadReceived (String endpointId, Payload payload)
Called when a Payload
            is received from a remote endpoint. Depending on the type of the Payload,
            all of the data may or may not have been received at the time of this call. Use
            
            onPayloadTransferUpdate(String, PayloadTransferUpdate) to get updates on the
            status of the data received.
Parameters
| endpointId | The identifier for the remote endpoint that sent the payload. | 
|---|---|
| payload | The Payloadobject received. | 
public abstract void onPayloadTransferUpdate (String endpointId, PayloadTransferUpdate update)
Called with progress information about an active Payload transfer, either incoming or outgoing.
Parameters
| endpointId | The identifier for the remote endpoint that is sending or receiving this payload. | 
|---|---|
| update | The 
                PayloadTransferUpdatedescribing the status of the transfer. |