Skip to main content

Typing Status

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

The RCChatViewController in Global IM UIKit uses the system's navigation bar. When the typing status feature is enabled in a one-to-one chat, the navigation bar on the right side of the session title will display the other party's typing status.

alt(width=250)

Limitations

  • Only supported in one-to-one chat sessions.
  • Since it is 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, only one typing status message is generated for multiple status changes within 6 seconds.

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

Global IM UIKit does not provide a method to adjust the default interval time. You need to use the configuration method in IMLib, with the unit in seconds.

[RCCoreClient sharedCoreClient].typingUpdateSeconds = 6;