java.lang.Object | |
↳ | com.gsma.services.rcs.filetransfer.FileTransfer |
File transfer
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | FileTransfer.Disposition | File disposition | |||||||||
enum | FileTransfer.ReasonCode | File transfer reason code | |||||||||
enum | FileTransfer.State | File transfer state |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
abortTransfer()
Aborts the file transfer
| ||||||||||
void |
acceptInvitation()
Accepts file transfer invitation
| ||||||||||
String |
getChatId()
Returns the chat ID if this file transfer is a group file transfer
| ||||||||||
RcsService.Direction |
getDirection()
Returns the direction of the transfer
| ||||||||||
FileTransfer.Disposition |
getDisposition()
Returns the file disposition
FileTransfer.Disposition . | ||||||||||
Uri |
getFile()
Returns the Uri of the file
| ||||||||||
long |
getFileExpiration()
Returns the time for when file on the content server is no longer valid to download.
| ||||||||||
Uri |
getFileIcon()
Returns the Uri of the file icon
| ||||||||||
long |
getFileIconExpiration()
Returns the time for when file icon on the content server is no longer valid to download.
| ||||||||||
String |
getFileIconMimeType()
Returns the MIME type of the file icon to be transfered
| ||||||||||
String |
getFileName()
Returns the complete filename including the path of the file to be transferred
| ||||||||||
long |
getFileSize()
Returns the size of the file to be transferred
| ||||||||||
String |
getMimeType()
Returns the MIME type of the file to be transferred
| ||||||||||
FileTransfer.ReasonCode |
getReasonCode()
Returns the reason code of the state of the sharing
| ||||||||||
ContactId |
getRemoteContact()
Returns the remote contact identifier
| ||||||||||
FileTransfer.State |
getState()
Returns the state of the file transfer
| ||||||||||
long |
getTimestamp()
Returns the local timestamp of when the file transfer was initiated and/or queued for
outgoing file transfers or the local timestamp of when the file transfer invitation was
received for incoming file transfers
| ||||||||||
long |
getTimestampDelivered()
Returns the local timestamp of when the file transfer was delivered for outgoing file
transfers or 0 for incoming file transfers or it was not yet displayed
| ||||||||||
long |
getTimestampDisplayed()
Returns the local timestamp of when the file transfer was displayed for outgoing file
transfers or 0 for incoming file transfers or it was not yet displayed
| ||||||||||
long |
getTimestampSent()
Returns the local timestamp of when the file transfer was initiated and /or queued for
outgoing file transfers or the remote timestamp of when the file transfer was initiated for
incoming file transfers
| ||||||||||
String |
getTransferId()
Returns the file transfer ID of the file transfer
| ||||||||||
boolean |
isAllowedToPauseTransfer()
Returns true if it is possible to pause this file transfer right now, else returns false.
| ||||||||||
boolean |
isAllowedToResendTransfer()
Returns whether you can resend the transfer.
| ||||||||||
boolean |
isAllowedToResumeTransfer()
Returns true if it is possible to resume this file transfer right now, else return false.
| ||||||||||
boolean |
isExpiredDelivery()
Returns true if delivery for this file has expired or false otherwise.
| ||||||||||
boolean |
isRead()
Returns true if file transfer has been marked as read
| ||||||||||
void |
pauseTransfer()
Pauses the file transfer
| ||||||||||
void |
rejectInvitation()
Rejects file transfer invitation
| ||||||||||
void |
resendTransfer()
Resend a file transfer which was previously failed.
| ||||||||||
void |
resumeTransfer()
Resumes the file transfer
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Aborts the file transfer
RcsPermissionDeniedException | |
RcsGenericException | |
RcsPermissionDeniedException |
Accepts file transfer invitation
RcsPermissionDeniedException | |
RcsPersistentStorageException | |
RcsGenericException | |
RcsPermissionDeniedException | |
RcsPersistentStorageException |
Returns the chat ID if this file transfer is a group file transfer
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the direction of the transfer
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the file disposition
FileTransfer.Disposition
.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the Uri of the file
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the time for when file on the content server is no longer valid to download.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the Uri of the file icon
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the time for when file icon on the content server is no longer valid to download.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the MIME type of the file icon to be transfered
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the complete filename including the path of the file to be transferred
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the size of the file to be transferred
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the MIME type of the file to be transferred
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the reason code of the state of the sharing
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the remote contact identifier
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the state of the file transfer
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the local timestamp of when the file transfer was initiated and/or queued for outgoing file transfers or the local timestamp of when the file transfer invitation was received for incoming file transfers
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the local timestamp of when the file transfer was delivered for outgoing file transfers or 0 for incoming file transfers or it was not yet displayed
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the local timestamp of when the file transfer was displayed for outgoing file transfers or 0 for incoming file transfers or it was not yet displayed
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the local timestamp of when the file transfer was initiated and /or queued for outgoing file transfers or the remote timestamp of when the file transfer was initiated for incoming file transfers
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns the file transfer ID of the file transfer
RcsGenericException |
---|
Returns true if it is possible to pause this file transfer right now, else returns false. If this filetransfer corresponds to a file transfer that is no longer present in the persistent storage false will be returned (this is no error)
RcsGenericException |
---|
Returns whether you can resend the transfer.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns true if it is possible to resume this file transfer right now, else return false. If this filetransfer corresponds to a file transfer that is no longer present in the persistent storage false will be returned.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns true if delivery for this file has expired or false otherwise. Note: false means either that delivery for this file has not yet expired, delivery has been successful, delivery expiration has been cleared (see clearFileTransferDeliveryExpiration) or that this particular file is not eligible for delivery expiration in the first place.
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Returns true if file transfer has been marked as read
RcsPersistentStorageException | |
RcsGenericException | |
RcsPersistentStorageException |
Pauses the file transfer
RcsPermissionDeniedException | |
RcsGenericException | |
RcsPermissionDeniedException |
Rejects file transfer invitation
RcsPersistentStorageException | |
RcsPermissionDeniedException | |
RcsGenericException | |
RcsPermissionDeniedException | |
RcsPersistentStorageException |
Resend a file transfer which was previously failed. This only for 1-1 file transfer, an exception is thrown in case of a file transfer to group.
RcsPermissionDeniedException | |
RcsGenericException | |
RcsPermissionDeniedException |
Resumes the file transfer
RcsPermissionDeniedException | |
RcsPersistentStorageException | |
RcsGenericException | |
RcsPermissionDeniedException | |
RcsPersistentStorageException |