Skip to main content
Quick Reference for AI Agents & Developers
  • Start typing: CometChat.startTyping(indicator:) — pass TypingIndicator(receiverID:receiverType:)
  • End typing: CometChat.endTyping(indicator:)
  • Listen for typing: onTypingStarted(_:), onTypingEnded(_:) in message listener delegate
  • Receiver types: .user, .group
  • Related: Send Message · Receive Message · Messaging Overview

Key Characteristics


Send a Typing Indicator

In other words, as a sender, how do I let the recipient(s) know that I’m typing?

Start Typing (User)

Method: CometChat.startTyping(indicator:)

Start Typing (Group)

Method: CometChat.startTyping(indicator:)

Start Typing with Metadata

Method: CometChat.startTyping(indicator:)
You can use the metadata field of the TypingIndicator class to pass additional data along with the typing indicators. This data will be received at the receiver end and can be obtained using the metadata property.

End Typing (User)

Method: CometChat.endTyping(indicator:)

End Typing (Group)

Method: CometChat.endTyping(indicator:)

Real-time Typing Indicators

In other words, as a recipient, how do I know when someone is typing? To receive typing indicators, implement CometChatMessageDelegate:
Method: onTypingStarted(_ typingDetails: TypingIndicator)TypingIndicator Object:
Method: onTypingEnded(_ typingDetails: TypingIndicator)TypingIndicator Object:

TypingIndicator Object Properties


Receiver Types


Delegate Methods

Typing indicators are transient and not persisted. The receiver must be online to receive them.