getConversation method
Future<V2TimValueCallback<V2TimConversation> >
getConversation({
- required String conversationID,
override
获取指定会话
参数
conversationID 会话唯一 ID,如果是 C2C 单聊,组成方式为 c2c_userID,如果是群聊,组成方式为 group_groupID
Implementation
@override
Future<V2TimValueCallback<V2TimConversation>> getConversation({
/*required*/ required String conversationID,
}) async {
return V2TimValueCallback<V2TimConversation>.fromJson(
formatJson(
await _channel.invokeMethod(
'getConversation',
buildConversationManagerParam(
{
"conversationID": conversationID,
},
),
),
),
);
}