public static interface SAFileTransfer.EventListener
Modifier and Type | Method and Description |
---|---|
void |
onCancelAllCompleted(int errorCode)
Called when canceling all of the transactions requested by application is completed.
|
void |
onProgressChanged(int transactionId,
int progress)
Called when the progress of file transfer changes.
|
void |
onTransferCompleted(int transactionId,
String fileName,
int errorCode)
Called when the file transfer is completed.
|
void |
onTransferRequested(int transactionId,
String fileName)
Called when a file transfer request from Peer Agent has arrived to the receiver Peer Agent.
|
void onTransferRequested(int transactionId, String fileName)
transactionId
- The transaction id for the incoming file transfer requestfileName
- The fully qualified file name of the incoming file transfervoid onProgressChanged(int transactionId, int progress)
transactionId
- Transaction id of the file transferprogress
- Progress in percentage(%)void onTransferCompleted(int transactionId, String fileName, int errorCode)
transactionId
- Transaction id of the file transfer requestfileName
- Path where the sent or received file is stored. null
if the error code is not
SAFileTransfer.ERROR_NONE
.errorCode
- The error code corresponding to an ERROR_* valuevoid onCancelAllCompleted(int errorCode)
errorCode
- The error code indicating the result of request. One of the error constants, SAFileTransfer.ERROR_NONE
,
SAFileTransfer.ERROR_TRANSACTION_NOT_FOUND
, SAFileTransfer.ERROR_NOT_SUPPORTED
.Copyright © Samsung Electronics, Co., Ltd. All rights reserved.