Skip to main content

Typing Status

The typing status feature allows users to intuitively know whether other users are typing a message. When the other user is typing, the title bar will continuously display "Typing..." until the user sends the message or completely deletes the text. If the user stops typing for more than 6 seconds, this prompt will also disappear. When there is a change in the input box, the SDK by default sends a typing status message to the other end, containing the message content object TypingStatusMessage (type identifier: RC:TypSts).

Global IM UIKit's RCChatViewController uses the system's navigation bar. After enabling the typing status feature, in a one-to-one chat session, when the other party is typing, the typing status will be displayed below the conversation title on the right side of the navigation bar.

(width=250)

Limitations

  • Only supported in one-to-one chat sessions.
  • Since it's impossible to determine the user's input actions, this feature may generate a large number of status messages. To prevent frequent message sending, by default, multiple status changes within 6 seconds will only generate one typing status message.

Usage

The typing status feature in Global IM UIKit is enabled by default and requires no additional handling.

Customization

Setting the Default Time Interval for Sending Typing Status Messages

If you want to modify the default configuration of Global IM UIKit, you can create an rc_configuration.xml file in the res/values directory of your app and modify the following configuration item. The unit is milliseconds.

<integer name="rc_disappear_interval">6000</integer>

Hiding the Typing Status Display

If you need to disable this prompt on the conversation page, call the following code after the app initialization:

ConfigCenter.setShowConnectingStatus(false)