Package | Description |
---|---|
cn.leancloud.im | |
cn.leancloud.im.v2 | |
cn.leancloud.im.v2.callback | |
cn.leancloud.im.v2.messages |
Modifier and Type | Method and Description |
---|---|
boolean |
DirectlyOperationTube.recallMessage(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
int convType,
LCIMMessage message,
LCIMCommonJsonCallback callback) |
boolean |
OperationTube.recallMessage(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
int convType,
LCIMMessage message,
LCIMCommonJsonCallback callback) |
boolean |
DirectlyOperationTube.recallMessageDirectly(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
int convType,
LCIMMessage message,
int requestId) |
boolean |
DirectlyOperationTube.sendMessage(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
String conversationId,
int convType,
LCIMMessage message,
LCIMMessageOption messageOption,
LCIMCommonJsonCallback callback) |
boolean |
OperationTube.sendMessage(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
String conversationId,
int convType,
LCIMMessage message,
LCIMMessageOption messageOption,
LCIMCommonJsonCallback callback) |
boolean |
DirectlyOperationTube.sendMessageDirectly(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
String conversationId,
int convType,
LCIMMessage message,
LCIMMessageOption messageOption,
int requestId) |
boolean |
DirectlyOperationTube.updateMessage(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
int convType,
LCIMMessage oldMessage,
LCIMMessage newMessage,
LCIMCommonJsonCallback callback) |
boolean |
OperationTube.updateMessage(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
int convType,
LCIMMessage oldMessage,
LCIMMessage newMessage,
LCIMCommonJsonCallback callback) |
boolean |
DirectlyOperationTube.updateMessageDirectly(cn.leancloud.session.LCConnectionManager connectionManager,
String clientId,
int convType,
LCIMMessage oldMessage,
LCIMMessage newMessage,
int requestId) |
Modifier and Type | Class and Description |
---|---|
class |
MessageHandler<T extends LCIMMessage> |
Modifier and Type | Class and Description |
---|---|
class |
LCIMBinaryMessage |
class |
LCIMTypedMessage |
Modifier and Type | Method and Description |
---|---|
LCIMMessage |
LCIMConversation.getLastMessage()
获取最新一条消息的时间
|
static LCIMMessage |
LCIMTypedMessage.getMessage(String cid,
String mId,
String data,
String from,
long timestamp,
long ackAt,
long readAt) |
protected LCIMMessage |
LCIMMessageStorage.getNextMessage(LCIMMessage currentMessage) |
static LCIMMessage |
LCIMMessage.parseJSON(Map<String,Object> jsonObject) |
static LCIMMessage |
LCIMMessage.parseJSONString(String content) |
protected static LCIMMessage |
LCIMMessageManager.parseTypedMessage(LCIMMessage message)
解析 LCIMMessage 对象的子类
|
static LCIMMessage |
LCIMMessageManagerHelper.parseTypedMessage(LCIMMessage message) |
Modifier and Type | Method and Description |
---|---|
void |
LCIMConversation.addToLocalCache(LCIMMessage message)
save local message which failed to send to LeanCloud server.
|
boolean |
LCIMMessageStorage.containMessage(LCIMMessage message) |
static LCIMBinaryMessage |
LCIMBinaryMessage.createInstanceFromMessage(LCIMMessage other)
create binary instance by copying LCIMMessage instance(except content field).
|
void |
LCIMMessageStorage.StorageMessageCallback.done(LCIMMessage message,
boolean breakpoint) |
static String |
LCIMMessageManagerHelper.getMessageToken(LCIMMessage msg) |
protected LCIMMessage |
LCIMMessageStorage.getNextMessage(LCIMMessage currentMessage) |
boolean |
LCIMMessageStorage.insertLocalMessage(LCIMMessage message) |
void |
LCIMMessageStorage.insertMessage(LCIMMessage message,
boolean breakpoint) |
void |
LCIMMessageHandler.onMessage(LCIMMessage message,
LCIMConversation conversation,
LCIMClient client)
重载此方法来处理接收消息
|
void |
LCIMConversationEventHandler.onMessageRecalled(LCIMClient client,
LCIMConversation conversation,
LCIMMessage message)
实现本地方法来处理消息的撤回事件
|
void |
LCIMMessageHandler.onMessageReceipt(LCIMMessage message,
LCIMConversation conversation,
LCIMClient client)
重载此方法来处理消息回执
|
void |
LCIMMessageHandler.onMessageReceiptEx(LCIMMessage message,
String operator,
LCIMConversation conversation,
LCIMClient client)
重载此方法来处理消息回执
|
void |
LCIMConversationEventHandler.onMessageUpdated(LCIMClient client,
LCIMConversation conversation,
LCIMMessage message)
实现本地方法来处理消息的更新事件
|
protected static LCIMMessage |
LCIMMessageManager.parseTypedMessage(LCIMMessage message)
解析 LCIMMessage 对象的子类
|
static LCIMMessage |
LCIMMessageManagerHelper.parseTypedMessage(LCIMMessage message) |
protected static void |
LCIMMessageManager.processMessage(LCIMMessage message,
int convType,
LCIMClient client,
boolean hasMore,
boolean isTransient) |
static void |
LCIMMessageManagerHelper.processMessage(LCIMMessage message,
int convType,
LCIMClient client,
boolean hasMore,
boolean isTransient) |
protected static void |
LCIMMessageManager.processMessageReceipt(LCIMMessage message,
LCIMClient client,
String from) |
static void |
LCIMMessageManagerHelper.processMessageReceipt(LCIMMessage message,
LCIMClient client,
String from) |
void |
LCIMConversation.recallMessage(LCIMMessage message,
LCIMMessageRecalledCallback callback)
racall message
|
void |
LCIMConversation.removeFromLocalCache(LCIMMessage message)
remove local message from cache.
|
boolean |
LCIMMessageStorage.removeLocalMessage(LCIMMessage message) |
void |
LCIMConversation.sendMessage(LCIMMessage message,
LCIMConversationCallback callback)
发送一条非暂存消息
|
void |
LCIMConversation.sendMessage(LCIMMessage message,
LCIMMessageOption messageOption,
LCIMConversationCallback callback)
发送一条消息。
|
void |
LCIMConversation.updateMessage(LCIMMessage oldMessage,
LCIMMessage newMessage,
LCIMMessageUpdatedCallback callback)
update message content
|
boolean |
LCIMMessageStorage.updateMessage(LCIMMessage message,
String originalId) |
Modifier and Type | Method and Description |
---|---|
void |
LCIMMessageStorage.deleteMessages(List<LCIMMessage> messages,
String conversationId) |
void |
LCIMMessageStorage.StorageQueryCallback.done(List<LCIMMessage> messages,
List<Boolean> breakpoints) |
void |
LCIMMessageStorage.insertContinuousMessages(List<LCIMMessage> messages,
String conversationId) |
static void |
LCIMMessageManager.registerMessageHandler(Class<? extends LCIMMessage> clazz,
MessageHandler<?> handler)
注册特定消息格式的处理单元
|
static void |
LCIMMessageManager.unregisterMessageHandler(Class<? extends LCIMMessage> clazz,
MessageHandler<?> handler)
取消特定消息格式的处理单元
|
protected void |
LCIMMessageStorage.updateBreakpoints(List<LCIMMessage> messages,
boolean breakpoint,
String conversationId) |
Modifier and Type | Method and Description |
---|---|
abstract void |
LCIMMessageUpdatedCallback.done(LCIMMessage message,
LCException e) |
abstract void |
LCIMSingleMessageQueryCallback.done(LCIMMessage msg,
LCIMException e) |
protected void |
LCIMSingleMessageQueryCallback.internalDone0(LCIMMessage returnValue,
LCException e) |
protected void |
LCIMMessageUpdatedCallback.internalDone0(LCIMMessage message,
LCException LCException) |
Modifier and Type | Method and Description |
---|---|
abstract void |
LCIMMessagesQueryCallback.done(List<LCIMMessage> messages,
LCIMException e) |
protected void |
LCIMMessagesQueryCallback.internalDone0(List<LCIMMessage> returnValue,
LCException e) |
Modifier and Type | Class and Description |
---|---|
class |
LCIMAudioMessage |
class |
LCIMFileMessage |
class |
LCIMImageMessage |
class |
LCIMLocationMessage |
class |
LCIMRecalledMessage |
class |
LCIMTextMessage |
class |
LCIMVideoMessage |
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.