public class

FileUpload

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

Class Overview

File upload

Summary

Nested Classes
enum FileUpload.State File upload state  
Public Methods
void abortUpload()
Aborts the upload
Uri getFile()
Returns the URI of the file to be uploaded
FileUpload.State getState()
Returns the state of the upload
String getUploadId()
Returns the upload ID of the upload
FileUploadInfo getUploadInfo()
Returns info related to the uploaded file on the content server
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void abortUpload ()

Since: API Level 1.5

Aborts the upload

public Uri getFile ()

Since: API Level 1.5

Returns the URI of the file to be uploaded

Returns
  • Uri

public FileUpload.State getState ()

Since: API Level 1.5

Returns the state of the upload

Returns
  • State
Throws
RcsGenericException
RcsGenericException
See Also

public String getUploadId ()

Since: API Level 1.5

Returns the upload ID of the upload

Returns
  • String Upload ID

public FileUploadInfo getUploadInfo ()

Since: API Level 1.5

Returns info related to the uploaded file on the content server

Returns
  • FileUploadInfo info or null if not yet upload or in case of error
Throws
RcsGenericException
RcsGenericException
See Also