Skip to main content

Typing Indicator

The typing indicator provides users with a visual cue when others are composing messages. When a user is typing, the title bar displays "Typing..." until the message is sent or the text is completely deleted.

If the user stops typing for more than 6 seconds, the indicator disappears. By default, the SDK sends a typing status message (RCTypingStatusMessage with type identifier RC:TypSts) to the recipient whenever the input field content changes.

tip

IMKit's RCConversationViewController uses the system navigation bar. When the typing indicator is enabled in a one-to-one chat, the SDK updates the title bar to display the recipient's typing status.

alt(width=250)

Limitations​

  • Only available in one-to-one chat.
  • Due to the inability to precisely track user input actions, this feature may generate excessive status messages. To prevent frequent messaging, only one typing status message is sent within a 6-second window by default.
  • May cause significant status message traffic. Disable this feature if not needed.

Usage​

IMKit enables typing indicators by default. No additional configuration is required.

Customization​

Adjust the default typing status message interval​

IMKit doesn't expose methods to modify the interval. Use IMLib's configuration method instead (unit: seconds).

[[RCCoreClient sharedCoreClient].typingUpdateSeconds = 6];

Disabling the Typing Indicator​

IMKit enables typing indicators by default. You can disable this feature via global configuration.

RCKitConfigCenter.message.enableTypingStatus = NO;