public class

ChatServiceConfiguration

extends Object
java.lang.Object
   ↳ com.gsma.services.rcs.chat.ChatServiceConfiguration

Class Overview

Chat service configuration

Summary

Public Methods
long getGeolocExpirationTime()
Get geoloc expiration time
int getGeolocLabelMaxLength()
Return maximum length of a geoloc label
int getGroupChatMaxParticipants()
Returns the maximum number of participants in a group chat
int getGroupChatMessageMaxLength()
Return maximum length of a group chat message.
int getGroupChatMinParticipants()
Returns the minimum number of participants in a group chat
int getGroupChatSubjectMaxLength()
The maximum group chat subject's length can have.
long getIsComposingTimeout()
Returns the time after inactive chat could be closed
int getOneToOneChatMessageMaxLength()
Returns the maximum one-to-one chat message s length can have.
boolean isChatWarnSF()
Does the UX should alert the user that messages are handled differently when the Store and Forward functionality is involved.
boolean isGroupChatSupported()
Returns True if group chat is supported, else returns False.
boolean isRespondToDisplayReportsEnabled()
Does displayed delivery report activated on received chat messages.
boolean isSmsFallback()
Does the UX proposes automatically a SMS fallback in case of chat failure.
void setRespondToDisplayReports(boolean enable)
Sets the parameter that controls whether to respond or not to display reports when requested by the remote.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public long getGeolocExpirationTime ()

Since: API Level 1.5

Get geoloc expiration time

Returns
  • int Time in milliseconds

public int getGeolocLabelMaxLength ()

Since: API Level 1.5

Return maximum length of a geoloc label

Returns
  • int Number of bytes

public int getGroupChatMaxParticipants ()

Since: API Level 1.5

Returns the maximum number of participants in a group chat

Returns
  • int Number

public int getGroupChatMessageMaxLength ()

Since: API Level 1.5

Return maximum length of a group chat message.

The length is the number of bytes of the message encoded in UTF-8.

Returns
  • int Number of bytes

public int getGroupChatMinParticipants ()

Since: API Level 1.5

Returns the minimum number of participants in a group chat

Returns
  • int number

public int getGroupChatSubjectMaxLength ()

Since: API Level 1.5

The maximum group chat subject's length can have.

The length is the number of bytes of the message encoded in UTF-8.

Returns
  • int The maximum group chat subject's length can have.

public long getIsComposingTimeout ()

Since: API Level 1.5

Returns the time after inactive chat could be closed

Returns
  • long Timeout in milliseconds

public int getOneToOneChatMessageMaxLength ()

Since: API Level 1.5

Returns the maximum one-to-one chat message s length can have.

The length is the number of bytes of the message encoded in UTF-8.

Returns
  • int Number of bytes

public boolean isChatWarnSF ()

Since: API Level 1.5

Does the UX should alert the user that messages are handled differently when the Store and Forward functionality is involved. It returns True if user should be informed when sending message to offline user.

Returns
  • boolean

public boolean isGroupChatSupported ()

Since: API Level 1.5

Returns True if group chat is supported, else returns False.

Returns
  • boolean True if group chat is supported, else returns False.

public boolean isRespondToDisplayReportsEnabled ()

Since: API Level 1.5

Does displayed delivery report activated on received chat messages.

Only applicable to one to one chat message.

Returns
  • boolean

public boolean isSmsFallback ()

Since: API Level 1.5

Does the UX proposes automatically a SMS fallback in case of chat failure. It returns True if SMS fallback procedure is activated, else returns False.

Returns
  • boolean

public void setRespondToDisplayReports (boolean enable)

Since: API Level 1.5

Sets the parameter that controls whether to respond or not to display reports when requested by the remote.
Applicable to one to one chat messages.

Parameters
enable true to set respond to display reports