sg.com.temasys.skylink.sdk.listener.FileTransferListener |
Known Indirect Subclasses |
Listener comprises of callbacks related to file transfer operation.
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
|
This is triggered when we have received a file successfully.
fileName | The name of the file |
---|---|
remotePeerId | The id of the remote peer |
This is triggered when we have sent a file successfully.
fileName | The name of the file |
---|---|
remotePeerId | The id of the remote peer receiving the file. |
This is triggered when an ongoing file transfer drops due to some reasons.
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. |
This is triggered upon receiving a file transfer request from a remote peer.
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 |
This is triggered upon receiving the response of a peer to our request for file transfer with the remote peer.
wasAccepted | Flag to specify whether the peer has accepted the request |
---|---|
fileName | The name of the file |
remotePeerId | The id of the remote peer |
This is triggered timely to report the on going progress when receiving a file
percentage | The completed percentage |
---|---|
fileName | The name of the file |
remotePeerId | The id of the remote peer sending the file. |
This is triggered timely to report the on going progress when sending a file
percentage | The completed percentage |
---|---|
fileName | The name of the file |
remotePeerId | The id of the remote peer receiving the file. |