| java.lang.Object | ||
| ↳ | com.gsma.services.rcs.RcsService | |
| ↳ | com.gsma.services.rcs.extension.MultimediaSessionService | |
This class offers the main entry point to initiate and to manage multimedia sessions. Several applications may connect/disconnect to the API.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.gsma.services.rcs.RcsService
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
MultimediaSessionService(Context ctx, RcsServiceListener listener)
Constructor
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addEventListener(MultimediaStreamingSessionListener listener)
Adds a listener on multimedia streaming session events
| ||||||||||
| void |
addEventListener(MultimediaMessagingSessionListener listener)
Adds a listener on multimedia messaging session events
| ||||||||||
| final void |
connect()
Connects to the API
| ||||||||||
| void |
disconnect()
Disconnects from the API
| ||||||||||
| MultimediaSessionServiceConfiguration |
getConfiguration()
Returns the configuration of the multimedia session service
| ||||||||||
| MultimediaMessagingSession |
getMessagingSession(String sessionId)
Returns a current messaging session from its unique session ID
| ||||||||||
| Set<MultimediaMessagingSession> |
getMessagingSessions(String serviceId)
Returns the list of messaging sessions associated to a given service ID
| ||||||||||
| MultimediaStreamingSession |
getStreamingSession(String sessionId)
Returns a current streaming session from its unique session ID
| ||||||||||
| Set<MultimediaStreamingSession> |
getStreamingSessions(String serviceId)
Returns the list of streaming sessions associated to a given service ID
| ||||||||||
| MultimediaMessagingSession |
initiateMessagingSession(String serviceId, ContactId contact, String[] acceptTypes, String[] acceptWrappedTypes)
Initiates a new session for real time messaging with a remote contact and for a given service
extension.
| ||||||||||
| MultimediaMessagingSession |
initiateMessagingSession(String serviceId, ContactId contact)
Initiates a new session for real time messaging with a remote contact and for a given service
extension.
| ||||||||||
| MultimediaStreamingSession |
initiateStreamingSession(String serviceId, ContactId contact)
This method is deprecated.
Use
initiateStreamingSession(String, ContactId, String)
instead. | ||||||||||
| MultimediaStreamingSession |
initiateStreamingSession(String serviceId, ContactId contact, String encoding)
Initiates a new session for real time streaming with a remote contact for a given service
extension and encoding (ie.
| ||||||||||
| void |
removeEventListener(MultimediaMessagingSessionListener listener)
Removes a listener on multimedia messaging session events
| ||||||||||
| void |
removeEventListener(MultimediaStreamingSessionListener listener)
Removes a listener on multimedia streaming session events
| ||||||||||
| void |
sendInstantMultimediaMessage(String serviceId, ContactId contact, byte[] content, String contentType)
Sends an instant multimedia message to a remote contact and for a given service extension.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.gsma.services.rcs.RcsService
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructor
| ctx | Application context |
|---|---|
| listener | Service listener |
Adds a listener on multimedia streaming session events
| listener | Session event listener |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Adds a listener on multimedia messaging session events
| listener | Session event listener |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Connects to the API
| RcsPermissionDeniedException |
|---|
Returns the configuration of the multimedia session service
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Returns a current messaging session from its unique session ID
| sessionId | the session ID |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Returns the list of messaging sessions associated to a given service ID
| serviceId | Service ID |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Returns a current streaming session from its unique session ID
| sessionId | the session ID |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Returns the list of streaming sessions associated to a given service ID
| serviceId | Service ID |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Initiates a new session for real time messaging with a remote contact and for a given service extension. The messages exchanged in real time during the session are specified by parameters accept-types and accept-wrapped-types. The parameter contact supports the following formats: MSISDN in national or international format, SIP address, SIP-URI or Tel-URI. If the format of the contact is not supported an exception is thrown.
| serviceId | Service ID |
|---|---|
| contact | Contact identifier |
| acceptTypes | Accept-types related to exchanged messages (may be null or empty) |
| acceptWrappedTypes | Accept-wrapped-types related to exchanged messages (may be null or empty) |
| RcsServiceNotRegisteredException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsServiceNotRegisteredException |
Initiates a new session for real time messaging with a remote contact and for a given service extension. The messages are exchanged in real time during the session may be from any type. The parameter contact supports the following formats: MSISDN in national or international format, SIP address, SIP-URI or Tel-URI. If the format of the contact is not supported an exception is thrown.
| serviceId | Service ID |
|---|---|
| contact | Contact identifier |
| RcsServiceNotRegisteredException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsServiceNotRegisteredException |
This method is deprecated.
Use
initiateStreamingSession(String, ContactId, String)
instead.
Initiates a new session for real time streaming with a remote contact and for a given service extension. The payload are exchanged in real time during the session and may be from any type. The parameter contact supports the following formats: MSISDN in national or international format, SIP address, SIP-URI or Tel-URI. If the format of the contact is not supported an exception is thrown.
| serviceId | Service ID |
|---|---|
| contact | Contact ID |
| RcsServiceNotRegisteredException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsServiceNotRegisteredException |
Initiates a new session for real time streaming with a remote contact for a given service
extension and encoding (ie. rtpmap format containing
| serviceId | Service ID |
|---|---|
| contact | Contact ID |
| encoding | Encoding payload format |
| RcsServiceNotRegisteredException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsServiceNotRegisteredException |
Removes a listener on multimedia messaging session events
| listener | Session event listener |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Removes a listener on multimedia streaming session events
| listener | Session event listener |
|---|
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsServiceNotAvailableException |
Sends an instant multimedia message to a remote contact and for a given service extension. The content takes part of the message, so any multimedia session is needed to exchange content here. The parameter contact supports the following formats: MSISDN in national or international format, SIP address, SIP-URI or Tel-URI. If the format of the contact is not supported an exception is thrown.
| serviceId | Service ID |
|---|---|
| contact | Contact identifier |
| content | Content of the message |
| contentType | Content type of the the message |
| RcsServiceNotRegisteredException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsGenericException | |
| RcsPermissionDeniedException | |
| RcsServiceNotAvailableException | |
| RcsServiceNotRegisteredException |