onConversationChanged
Feature Introduction
info
This callback is triggered when critical information in certain conversations changes. For example, changes in the number of unread messages in a conversation, or changes to the last message in a conversation.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(List<ConversationInfo> list)? onConversationChanged;
Return Results
Name | Type | Description |
---|---|---|
list | List<ConversationInfo> | Conversation Info |
Return Prototype
- (void)onConversationChanged:(NSArray <OIMConversationInfo *> *)conversations;
Return Results
Name | Type | Description |
---|---|---|
conversations | NSArray < OIMConversationInfo * > | Conversation Info |
Return Prototype
void onConversationChanged(List<ConversationInfo> list);
Return Results
Name | Type | Description |
---|---|---|
list | List<ConversationInfo> | Conversation Info |
Return Prototype
onConversationChanged(data: WSEvent<ConversationItem[]>): void;
Call Example
import { getSDK, CbEvents } from '@openim/wasm-client-sdk';
// or
// import { getSDK, CbEvents } from '@openim/client-sdk';
// const IMSDK = getSDK();
const IMSDK = getSDK();
IMSDK.on(
CbEvents.OnConversationChanged,
({ data }: WSEvent<ConversationItem[]>) => {
// data - Conversation Info
}
);
Return Results
Name | Type | Description |
---|---|---|
data | WSEvent<ConversationItem[]> | Conversation Info |
Return Prototype
onConversationChanged(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.OnConversationChanged,
({ data }: WSEvent<ConversationItem[]>) => {
// data - Conversation Info
}
);
Prototype
void OnConversationChanged(List<Conversation> list);
Parameter
Parameter Name | Type | Description |
---|---|---|
list | List<Conversation> | Conversation Info |