public abstract class

FileUploadListener

extends Object
java.lang.Object
   ↳ com.gsma.services.rcs.upload.FileUploadListener

Class Overview

File upload event listener

Summary

Public Constructors
FileUploadListener()
Public Methods
abstract void onProgressUpdate(String uploadId, long currentSize, long totalSize)
Callback called during the upload progress.
abstract void onStateChanged(String uploadId, FileUpload.State state)
Callback called when the file upload state has been changed.
abstract void onUploaded(String uploadId, FileUploadInfo info)
Callback called when the file has been uploaded.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FileUploadListener ()

Since: API Level 1.5

Public Methods

public abstract void onProgressUpdate (String uploadId, long currentSize, long totalSize)

Since: API Level 1.5

Callback called during the upload progress.

Parameters
uploadId ID of upload
currentSize Current transferred size in bytes
totalSize Total size to transfer in bytes

public abstract void onStateChanged (String uploadId, FileUpload.State state)

Since: API Level 1.5

Callback called when the file upload state has been changed.

Parameters
uploadId ID of upload
state State of upload

public abstract void onUploaded (String uploadId, FileUploadInfo info)

Since: API Level 1.5

Callback called when the file has been uploaded.

Parameters
uploadId ID of upload
info Info about the file upload