Browse SDKs · Flutter
SDKsFlutter

Report typing status

Use the Flutter SDK to report the current user's typing status.

Copy
await OpenIM.iMManager.conversationManager.changeInputStates(
  conversationID: conversationID,
  focus: true,
);

Pass true when typing begins. Pass false after sending, losing focus, switching conversations, or stopping input. Typing status does not save a draft or add an item to the message list. Throttle and deduplicate the start signal. Future completion does not mean that a remote UI has already updated. Do not use the deprecated typingStatusUpdate(), which throws UnimplementedError.

onInputStatusChanged is the event owned by this page. Add it to the single OnConversationListener and replace each platformIDs snapshot by conversationID:userID. See Event overview for the listener configuration entry point.