public class

FileTransferAdapter

extends Object
implements FileTransferListener
java.lang.Object
   ↳ sg.com.temasys.skylink.sdk.adapter.FileTransferAdapter

Summary

Public Constructors
FileTransferAdapter()
Public Methods
void onCompleteFileTransferReceiving(String fileName, String remotePeerId)
This is triggered when we have received a file successfully.
void onCompleteFileTransferSending(String fileName, String remotePeerId)
This is triggered when we have sent a file successfully.
void onDropFileTransfer(String fileName, String message, boolean isExplicit, String remotePeerId)
This is triggered when an ongoing file transfer drops due to some reasons.
void onReceiveFileTransferRequest(String fileName, boolean isPublic, String remotePeerId)
This is triggered upon receiving a file transfer request from a remote peer.
void onReceiveFileTransferResponse(boolean wasAccepted, String fileName, String remotePeerId)
This is triggered upon receiving the response of a peer to our request for file transfer with the remote peer.
void onUpdateFileTransferReceivingProgress(double percentage, String fileName, String remotePeerId)
This is triggered timely to report the on going progress when receiving a file
void onUpdateFileTransferSendingProgress(double percentage, String fileName, String remotePeerId)
This is triggered timely to report the on going progress when sending a file
[Expand]
Inherited Methods
From class java.lang.Object
From interface sg.com.temasys.skylink.sdk.listener.FileTransferListener

Public Constructors

public FileTransferAdapter ()

Public Methods

public void onCompleteFileTransferReceiving (String fileName, String remotePeerId)

This is triggered when we have received a file successfully.

Parameters
fileName The name of the file
remotePeerId The id of the remote peer

public void onCompleteFileTransferSending (String fileName, String remotePeerId)

This is triggered when we have sent a file successfully.

Parameters
fileName The name of the file
remotePeerId The id of the remote peer receiving the file.

public void onDropFileTransfer (String fileName, String message, boolean isExplicit, String remotePeerId)

This is triggered when an ongoing file transfer drops due to some reasons.

Parameters
fileName The name of the file
message Message that possibly tells the reason for dropping
isExplicit True if user canceled the transfer explicitly, as opposed to being due to error in the transfer process.
remotePeerId The id of the peer. Null if broadcast file transfer was attempted.

public void onReceiveFileTransferRequest (String fileName, boolean isPublic, String remotePeerId)

This is triggered upon receiving a file transfer request from a remote peer.

Parameters
fileName The name of the file
isPublic Flag to specify if file share was directed to only us (as opposed to all peers in the room).
remotePeerId The id of the remote peer

public void onReceiveFileTransferResponse (boolean wasAccepted, String fileName, String remotePeerId)

This is triggered upon receiving the response of a peer to our request for file transfer with the remote peer.

Parameters
wasAccepted Flag to specify whether the peer has accepted the request
fileName The name of the file
remotePeerId The id of the remote peer

public void onUpdateFileTransferReceivingProgress (double percentage, String fileName, String remotePeerId)

This is triggered timely to report the on going progress when receiving a file

Parameters
percentage The completed percentage
fileName The name of the file
remotePeerId The id of the remote peer sending the file.

public void onUpdateFileTransferSendingProgress (double percentage, String fileName, String remotePeerId)

This is triggered timely to report the on going progress when sending a file

Parameters
percentage The completed percentage
fileName The name of the file
remotePeerId The id of the remote peer receiving the file.