public abstract class

ImageSharingListener

extends Object
java.lang.Object
   ↳ com.gsma.services.rcs.sharing.image.ImageSharingListener

Class Overview

Image sharing event listener

Summary

Public Constructors
ImageSharingListener()
Public Methods
abstract void onDeleted(ContactId contact, Set<String> sharingIds)
Callback called when a delete operation completed that resulted in that one or several image sharings was deleted specified by the sharingIds parameter corresponding to a specific contact.
abstract void onProgressUpdate(ContactId contact, String sharingId, long currentSize, long totalSize)
Callback called during the sharing progress.
abstract void onStateChanged(ContactId contact, String sharingId, ImageSharing.State state, ImageSharing.ReasonCode reasonCode)
Callback called when the image sharing state/reasonCode has been changed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ImageSharingListener ()

Since: API Level 1.5

Public Methods

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

Since: API Level 1.5

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

Parameters
contact Contact ID
sharingIds ids of those deleted image sharing

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

Since: API Level 1.5

Callback called during the sharing progress.

Parameters
contact Contact ID
sharingId ID of image sharing
currentSize Current transferred size in bytes
totalSize Total size to transfer in bytes

public abstract void onStateChanged (ContactId contact, String sharingId, ImageSharing.State state, ImageSharing.ReasonCode reasonCode)

Since: API Level 1.5

Callback called when the image sharing state/reasonCode has been changed.

Parameters
contact Contact ID
sharingId ID of image sharing
state State of image sharing
reasonCode Reason code of the image sharing state