public class

ImageSharing

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

Class Overview

Image sharing

Summary

Nested Classes
enum ImageSharing.ReasonCode Reason code associated with the image share state. 
enum ImageSharing.State Image sharing state  
Public Methods
void abortSharing()
Aborts the sharing
void acceptInvitation()
Accepts image sharing invitation
RcsService.Direction getDirection()
Returns the direction of the sharing
Uri getFile()
Returns the URI of the file to be shared
String getFileName()
Returns the complete filename including the path of the file to be transferred
long getFileSize()
Returns the size of the file to be transferred
String getMimeType()
Returns the MIME type of the file to be transferred
ImageSharing.ReasonCode getReasonCode()
Returns the reason code of the state of the sharing
ContactId getRemoteContact()
Returns the remote contact identifier
String getSharingId()
Returns the sharing ID of the image sharing
ImageSharing.State getState()
Returns the state of the sharing
long getTimestamp()
Returns the local timestamp of when the image sharing was initiated for outgoing image sharing or the local timestamp of when the image sharing invitation was received for incoming image sharings.
void rejectInvitation()
Rejects image sharing invitation
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void abortSharing ()

Since: API Level 1.5

Aborts the sharing

Throws
RcsPermissionDeniedException
RcsGenericException
RcsPermissionDeniedException

public void acceptInvitation ()

Since: API Level 1.5

Accepts image sharing invitation

public RcsService.Direction getDirection ()

Since: API Level 1.5

Returns the direction of the sharing

Returns
  • Direction
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException

public Uri getFile ()

Since: API Level 1.5

Returns the URI of the file to be shared

Returns
  • Uri
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public String getFileName ()

Since: API Level 1.5

Returns the complete filename including the path of the file to be transferred

Returns
  • String Filename
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public long getFileSize ()

Since: API Level 1.5

Returns the size of the file to be transferred

Returns
  • long Size in bytes
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public String getMimeType ()

Since: API Level 1.5

Returns the MIME type of the file to be transferred

Returns
  • String Type
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public ImageSharing.ReasonCode getReasonCode ()

Since: API Level 1.5

Returns the reason code of the state of the sharing

Returns
  • ReasonCode
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException

public ContactId getRemoteContact ()

Since: API Level 1.5

Returns the remote contact identifier

Returns
  • ContactId
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public String getSharingId ()

Since: API Level 1.5

Returns the sharing ID of the image sharing

Returns
  • String Sharing ID

public ImageSharing.State getState ()

Since: API Level 1.5

Returns the state of the sharing

Returns
  • State
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException

public long getTimestamp ()

Since: API Level 1.5

Returns the local timestamp of when the image sharing was initiated for outgoing image sharing or the local timestamp of when the image sharing invitation was received for incoming image sharings.

Returns
  • long
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public void rejectInvitation ()

Since: API Level 1.5

Rejects image sharing invitation