void deleteFileTransfer(String transferId) Method: Disables and clears any delivery expiration for a set of file transfers regardless if the delivery of them has expired already or not. void clearFileTransferDeliveryExpiration(<String> transferIds) Class FileTransfer: This class maintains the information related to a file transfer and offers methods to manage the transfer. Enum: the file transfer state. Enum State { INVITED(0), ACCEPTING(1), REJECTED(2), QUEUED(3), INITIATING(4), STARTED(5), PAUSED(6) , ABORTED(7), TRANSFERRED(8), FAILED(9), DELIVERED(10), DISPLAYED(11) } Enum: the reason code for the file transfer. Enum ReasonCode { UNSPECIFIED(0), ABORTED_BY_USER(1), ABORTED_BY_REMOTE(2), ABORTED_BY_SYSTEM(3), REJECTED_BY_SECONDARY_DEVICE(4), REJECTED_BY_TIMEOUT(5), REJECTED_SPAM(6), REJECTED_LOW_SPACE(7), REJECTED_MAX_SIZE(8), REJECTED_MAX_FILE_TRANSFERS(9), REJECTED_BY_USER(10), REJECTED_BY_REMOTE(11), REJECTED_MEDIA_FAILED(12), REJECTED_BY_SYSTEM(13), PAUSED_BY_SYSTEM(14), PAUSED_BY_USER(15), FAILED_INITIATION(16), FAILED_DATA_TRANSFER(17), FAILED_SAVING(18), FAILED_DELIVERY(19), FAILED_DISPLAY(20), FAILED_ NOT_ALLOWED_TO_SEND(21) } Method: Returns whether the transfer is a group transfer. boolean isGroupTransfer() Method: Returns the chat ID if the file transfer. String getChatId() Method: returns the file transfer ID of the file transfer. String getTransferId()
void deleteFileTransfer(String transferId) Method: Disables and clears any delivery expiration for a set of file transfers regardless if the delivery of them has expired already or not. void clearFileTransferDeliveryExpiration(<String> transferIds) Class FileTransfer: This class maintains the information related to a file transfer and offers methods to manage the transfer. Enum: the file transfer state. Enum State { INVITED(0), ACCEPTING(1), REJECTED(2), QUEUED(3), INITIATING(4), STARTED(5), PAUSED(6) , ABORTED(7), TRANSFERRED(8), FAILED(9), DELIVERED(10), DISPLAYED(11) } Enum: the reason code for the file transfer. Enum ReasonCode { UNSPECIFIED(0), ABORTED_BY_USER(1), ABORTED_BY_REMOTE(2), ABORTED_BY_SYSTEM(3), REJECTED_BY_SECONDARY_DEVICE(4), REJECTED_BY_TIMEOUT(5), REJECTED_SPAM(6), REJECTED_LOW_SPACE(7), REJECTED_MAX_SIZE(8), REJECTED_MAX_FILE_TRANSFERS(9), REJECTED_BY_USER(10), REJECTED_BY_REMOTE(11), REJECTED_MEDIA_FAILED(12), REJECTED_BY_SYSTEM(13), PAUSED_BY_SYSTEM(14), PAUSED_BY_USER(15), FAILED_INITIATION(16), FAILED_DATA_TRANSFER(17), FAILED_SAVING(18), FAILED_DELIVERY(19), FAILED_DISPLAY(20), FAILED_ NOT_ALLOWED_TO_SEND(21) } Method: Returns whether the transfer is a group transfer. boolean isGroupTransfer() Method: Returns the chat ID if the file transfer. String getChatId() Method: returns the file transfer ID of the file transfer. String getTransferId()