public class

MultimediaMessagingSession

extends MultimediaSession
java.lang.Object
   ↳ com.gsma.services.rcs.extension.MultimediaSession
     ↳ com.gsma.services.rcs.extension.MultimediaMessagingSession

Class Overview

This class maintains the information related to a multimedia session for a real time messaging service.

Summary

Public Methods
void abortSession()
Aborts the session
void acceptInvitation()
Accepts session invitation.
void flushMessages()
Flush all messages of the session
RcsService.Direction getDirection()
Returns the direction of the session
MultimediaSession.ReasonCode getReasonCode()
Returns the reason code state of the session
ContactId getRemoteContact()
Returns the remote contact identifier
String getServiceId()
Returns the service ID
String getSessionId()
Returns the session ID of the multimedia session
MultimediaSession.State getState()
Returns the state of the session
void rejectInvitation()
Rejects session invitation
void sendMessage(byte[] content, String contentType)
Sends a message in real time
void sendMessage(byte[] content)
This method is deprecated. Use sendMessage(byte[], String) instead.
[Expand]
Inherited Methods
From class com.gsma.services.rcs.extension.MultimediaSession
From class java.lang.Object

Public Methods

public void abortSession ()

Since: API Level 1.5

Aborts the session

Throws
RcsPermissionDeniedException
RcsGenericException
RcsPermissionDeniedException

public void acceptInvitation ()

Since: API Level 1.5

Accepts session invitation.

Throws
RcsPermissionDeniedException
RcsGenericException
RcsPermissionDeniedException

public void flushMessages ()

Since: API Level 1.6

Flush all messages of the session

Throws
RcsPermissionDeniedException
RcsGenericException
RcsPermissionDeniedException

public RcsService.Direction getDirection ()

Since: API Level 1.5

Returns the direction of the session

Returns
  • Direction

public MultimediaSession.ReasonCode getReasonCode ()

Since: API Level 1.5

Returns the reason code state of the session

Returns
  • ReasonCode

public ContactId getRemoteContact ()

Since: API Level 1.5

Returns the remote contact identifier

Returns
  • ContactId

public String getServiceId ()

Since: API Level 1.5

Returns the service ID

Returns
  • String Service ID

public String getSessionId ()

Since: API Level 1.5

Returns the session ID of the multimedia session

Returns
  • String Session ID

public MultimediaSession.State getState ()

Since: API Level 1.5

Returns the state of the session

Returns
  • State

public void rejectInvitation ()

Since: API Level 1.5

Rejects session invitation

Throws
RcsPermissionDeniedException
RcsGenericException
RcsPermissionDeniedException

public void sendMessage (byte[] content, String contentType)

Since: API Level 1.6

Sends a message in real time

Parameters
content Message content
contentType Message content type
Throws
RcsPermissionDeniedException
RcsGenericException
RcsPermissionDeniedException

public void sendMessage (byte[] content)

Since: API Level 1.5

This method is deprecated.
Use sendMessage(byte[], String) instead.

Sends a message in real time

Parameters
content Message content
Throws
RcsPermissionDeniedException
RcsGenericException
RcsPermissionDeniedException