public class

FileTransferAdapter

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

Summary

Public Constructors
FileTransferAdapter()
Public Methods
void onFileReceiveComplete(String remotePeerId, String fileName)
This is triggered when we have received a file successfully.
void onFileReceiveProgress(String remotePeerId, String fileName, double percentage)
This is triggered timely to report the on going progress when receiving a file
void onFileSendComplete(String remotePeerId, String fileName)
This is triggered when we have sent a file successfully.
void onFileSendProgress(String remotePeerId, String fileName, double percentage)
This is triggered timely to report the on going progress when sending a file
void onFileTransferDrop(String remotePeerId, String fileName, String message, boolean isExplicit)
This is triggered when an ongoing file transfer drops due to some reason.
void onFileTransferPermissionRequest(String remotePeerId, String fileName, boolean isPrivate)
This is triggered upon receiving a file transfer request from a peer.
void onFileTransferPermissionResponse(String remotePeerId, String fileName, boolean isPermitted)
This is triggered upon receiving the response of a peer to our request for file transfer with the peer.
[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 onFileReceiveComplete (String remotePeerId, String fileName)

This is triggered when we have received a file successfully.

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

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

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

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

public void onFileSendComplete (String remotePeerId, String fileName)

This is triggered when we have sent a file successfully.

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

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

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

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

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

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

Parameters
remotePeerId The id of the peer. Null if broadcast file transfer was attempted.
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.

public void onFileTransferPermissionRequest (String remotePeerId, String fileName, boolean isPrivate)

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

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

public void onFileTransferPermissionResponse (String remotePeerId, String fileName, boolean isPermitted)

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

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