public interface

FileTransferListener

sg.com.temasys.skylink.sdk.listener.FileTransferListener
Known Indirect Subclasses

Class Overview

Listener comprises of callbacks related to file transfer operation.

Summary

Public Methods
abstract void onCompleteFileTransferReceiving(String fileName, String remotePeerId)
This is triggered when we have received a file successfully.
abstract void onCompleteFileTransferSending(String fileName, String remotePeerId)
This is triggered when we have sent a file successfully.
abstract void onDropFileTransfer(String fileName, String message, boolean isExplicit, String remotePeerId)
This is triggered when an ongoing file transfer drops due to some reasons.
abstract void onReceiveFileTransferRequest(String fileName, boolean isPublic, String remotePeerId)
This is triggered upon receiving a file transfer request from a remote peer.
abstract 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.
abstract void onUpdateFileTransferReceivingProgress(double percentage, String fileName, String remotePeerId)
This is triggered timely to report the on going progress when receiving a file
abstract void onUpdateFileTransferSendingProgress(double percentage, String fileName, String remotePeerId)
This is triggered timely to report the on going progress when sending a file

Public Methods

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.