public interface FileTransferEventListener
Modifier and Type | Method and Description |
---|---|
void |
fileTransferComplete(FileTransfer transfer,
boolean wasSuccessful)
Invoked when a file transfer was completed.
|
void |
fileTransferStart(FileTransfer transfer,
boolean isReady)
Invoked when a file transfer is about to start..
|
void fileTransferStart(FileTransfer transfer, boolean isReady) throws FileTransferRejectedException
It is recommended for the the sake of user experience that when in the not ready state, any processing done on the file transfer should be quick.
transfer
- the transfer being intercepted (never null).isReady
- true if the transfer is ready to commence or false if this is related to the
initial file transfer request. An exception at this point will cause the transfer to
not go through.FileTransferRejectedException
- if the request was rejectedvoid fileTransferComplete(FileTransfer transfer, boolean wasSuccessful)
transfer
- the transfer being intercepted (never null).wasSuccessful
- false when an exception was thrown during file transfer, otherwise true.Copyright © 2003–2020 Ignite Realtime. All rights reserved.