java.lang.Object | |
↳ | sg.com.temasys.skylink.sdk.adapter.FileTransferAdapter |
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
|
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. |