public abstract class

GroupFileTransferListener

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

Class Overview

Group file transfer event listener

Summary

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

Public Constructors

public GroupFileTransferListener ()

Since: API Level 1.5

Public Methods

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

Since: API Level 1.5

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

Parameters
chatId id of the chat
transferIds ids of those deleted file transfers

public abstract void onDeliveryInfoChanged (String chatId, ContactId contact, String transferId, GroupDeliveryInfo.Status status, GroupDeliveryInfo.ReasonCode reasonCode)

Since: API Level 1.5

Callback called when a group file transfer state/reasonCode is changed for a single recipient only.

Parameters
chatId Id of chat
contact Contact ID
transferId Id of file transfer
status state of file transfer after change
reasonCode Reason code of state after change

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

Since: API Level 1.5

Callback called during the transfer progress of group file transfer

Parameters
chatId Id of chat
transferId Id of file transfer
currentSize Current transferred size in bytes
totalSize Total size to transfer in bytes

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

Since: API Level 1.5

Callback called when the group file transfer status/reasonCode is changed.

Parameters
chatId Id of chat
transferId Id of file transfer
state State of file transfer after change
reasonCode Reason code of file transfer after change