onNewConversation
Description
info
Received when a new conversation is generated.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(List<ConversationInfo> list)? onNewConversation;
Return Results
| Name | Type | Description |
|---|---|---|
| list | List<ConversationInfo> | Conversation info |
Return Prototype
- (void)onNewConversation:(NSArray <OIMConversationInfo *> *)conversations;
Return Results
| Name | Type | Description |
|---|---|---|
| conversations | NSArray < OIMConversationInfo * > | Conversation info |
Return Prototype
void onNewConversation(List<ConversationInfo> list)
Return Results
| Name | Type | Description |
|---|---|---|
| list | List<ConversationInfo> | Conversation info |
Return Prototype
onNewConversation(data: WSEvent<ConversationItem[]>): void;
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent<ConversationItem[]> | Conversation info |
Call Example
import { getSDK } from '@openim/wasm-client-sdk';
const IMSDK = getSDK();
IMSDK.on(
CbEvents.OnNewConversation,
({ data }: WSEvent<ConversationItem[]>) => {
// data: conversation info
}
);
Return Prototype
onNewConversation(data: WSEvent<ConversationItem[]>): void;
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent<ConversationItem[]> | Conversation info |
Call Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(
IMSDK.IMEvents.OnNewConversation,
({ data }: WSEvent<ConversationItem[]>) => {
// data: conversation info
}
);
Return Prototype
void OnNewConversation(List<Conversation> list);
Return Results
| Name | Type | Description |
|---|---|---|
| list | List<Conversation> | Conversation info |