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

Public Methods

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