public abstract class

OneToOneFileTransferListener

extends Object
java.lang.Object
   ↳ com.gsma.services.rcs.filetransfer.OneToOneFileTransferListener

Class Overview

One-To-One File transfer event listener

Summary

Public Constructors
OneToOneFileTransferListener()
Public Methods
abstract void onDeleted(ContactId contact, Set<String> transferIds)
Callback called when a delete operation completed that resulted in that one or several one to one file transfers was deleted specified by the transferIds parameter corresponding to a specific contact.
abstract void onProgressUpdate(ContactId contact, String transferId, long currentSize, long totalSize)
Callback called during the file transfer progress.
abstract void onStateChanged(ContactId contact, String transferId, FileTransfer.State state, FileTransfer.ReasonCode reasonCode)
Callback called when the file transfer state/reasonCode is changed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OneToOneFileTransferListener ()

Since: API Level 1.5

Public Methods

public abstract void onDeleted (ContactId contact, Set<String> transferIds)

Since: API Level 1.5

Callback called when a delete operation completed that resulted in that one or several one to one file transfers was deleted specified by the transferIds parameter corresponding to a specific contact.

Parameters
contact Contact ID
transferIds ids of those deleted file transfers

public abstract void onProgressUpdate (ContactId contact, String transferId, long currentSize, long totalSize)

Since: API Level 1.5

Callback called during the file transfer progress.

Parameters
contact Contact ID
transferId Id of file transfer
currentSize Current transferred size in bytes
totalSize Total size to transfer in bytes

public abstract void onStateChanged (ContactId contact, String transferId, FileTransfer.State state, FileTransfer.ReasonCode reasonCode)

Since: API Level 1.5

Callback called when the file transfer state/reasonCode is changed.

Parameters
contact Contact ID
transferId Id of file transfer
state State of the file transfer
reasonCode Reason code