public class CustomMessageConfig
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
enableHistory
Specify whether to store the message on the server.
|
boolean |
enablePersist
Specify whether to persist messages after the user gets offline
The default value is true.
|
boolean |
enablePush
Specify whether to enable alert.
|
boolean |
enablePushNick
Specify whether to push the nickname (valid for iOS clients).
|
boolean |
enableRoaming
Specify whether to enable roaming.
|
boolean |
enableRoute
Specify whether to enable route.
|
boolean |
enableSelfSync
Specify whether to sync a message with other devices.
|
boolean |
enableUnreadCount
Specify whether to count the message as unread.
|
static java.lang.String |
KEY_ENABLE_HISTORY |
static java.lang.String |
KEY_ENABLE_PERSIST |
static java.lang.String |
KEY_ENABLE_PUSH |
static java.lang.String |
KEY_ENABLE_PUSH_NICK |
static java.lang.String |
KEY_ENABLE_ROAMING |
static java.lang.String |
KEY_ENABLE_ROUTE |
static java.lang.String |
KEY_ENABLE_SELF_SYNC |
static java.lang.String |
KEY_ENABLE_UNREAD_COUNT |
Constructor and Description |
---|
CustomMessageConfig() |
public static java.lang.String KEY_ENABLE_HISTORY
public static java.lang.String KEY_ENABLE_ROAMING
public static java.lang.String KEY_ENABLE_SELF_SYNC
public static java.lang.String KEY_ENABLE_PUSH
public static java.lang.String KEY_ENABLE_PERSIST
public static java.lang.String KEY_ENABLE_PUSH_NICK
public static java.lang.String KEY_ENABLE_UNREAD_COUNT
public static java.lang.String KEY_ENABLE_ROUTE
public boolean enableHistory
MsgService.pullMessageHistory(IMMessage, int, boolean)
will not contain this message. public boolean enableRoaming
public boolean enableSelfSync
public boolean enablePush
public boolean enablePushNick
public boolean enableUnreadCount
public boolean enableRoute
public boolean enablePersist