onInputStatusChanged
Function Introduction
info
Callback for input status changes.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
ValueChanged< InputStatusChangedData >? onInputStatusChanged;
Return Result
Name | Type | Description |
---|---|---|
InputStatusChangedData | InputStatusChangedData | Input status data |
Return Prototype
- (void)onConversationUserInputStatusChanged:(OIMInputStatusChangedData *)inputStatusChangedData;
Return Result
Name | Type | Description |
---|---|---|
OIMInputStatusChangedData | OIMInputStatusChangedData | Input status data |
Return Prototype
public void onInputStatusChanged(InputStatusChangedData inputStatusChangedData) {
// implementation
}
Return Result
Name | Type | Description |
---|---|---|
InputStatusChangedData | InputStatusChangedData | Input status data |
Return Prototype
onInputStatusChanged(data: WSEvent<InputStatusChangedData>): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent<InputStatusChangedData> | Input status data |
Code Example
import { getSDK } from '@openim/wasm-client-sdk';
const IMSDK = getSDK();
// use in electron with ffi
// import { getWithRenderProcess } from '@openim/electron-client-sdk/lib/render';
// const { instance: IMSDK } = getWithRenderProcess();
// use in mini program
// import { getSDK } from '@openim/client-sdk';
// const IMSDK = getSDK();
IMSDK.on(CbEvents.onInputStatusChanged, ({ data }) => {
// data
});
Return Prototype
onInputStatusChanged(data: InputStatusChangedData): void;
Return Result
Name | Type | Description |
---|---|---|
data | InputStatusChangedData | Input status data |
Code Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe('onInputStatusChanged', (data) => {
// data
});
Return Prototype
onInputStatusChanged(data: InputStatusChangedData): void;
Return Result
Name | Type | Description |
---|---|---|
data | InputStatusChangedData | Input status data |
Code Example
import { OpenIMEmitter } from "open-im-sdk-rn";
OpenIMEmitter.addListener("onInputStatusChanged", (data) => {
// data
});