Report typing status
Use the Flutter SDK to report the current user's typing status.
Report typing indicators when a user focuses on the input field or starts typing, and clear the state when losing focus or stopping input:
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationID | String | Yes | Target conversation ID. |
focus | bool | Yes | Typing state: true indicates active typing; false indicates stopped typing or lost focus. |
Code example
await OpenIM.iMManager.conversationManager.changeInputStates(
conversationID: conversationID,
focus: true,
);We recommend throttling and debouncing keystrokes on the client to avoid sending excessive network requests. Pass false promptly when sending a message, switching conversations, or blurring the input field.
Return value
Future completion indicates that the server accepted the typing status report, but does not guarantee the peer client received or rendered it. Typing status is transient signaling: it does not persist to database storage and does not create draft records.
State changes after the call
Typing notifications arrive via the onInputStatusChanged callback in OnConversationListener. When the counterparty's typing state updates, merge and replace the user's active platform array platformIDs keyed by conversationID:userID. For global listener registration and lifecycle management, see Events overview.
Was this page helpful?