AI Integration Quick Reference
AI Integration Quick Reference
Send a Typing Indicator
In other words, as a sender, how do I let the recipient(s) know that I’m typing?Start Typing
UsestartTyping() to notify the receiver that the logged-in user has started typing. The receiver will receive this information in the onTypingStarted() method of the MessageListener class.
- Start Typing (User)
- Start Typing (Group)
startTyping() Parameters:
startTyping() returns void — the typing indicator is sent as a fire-and-forget operation.
Stop Typing
UseendTyping() to notify the receiver that the logged-in user has stopped typing. The receiver will receive this information in the onTypingEnded() method of the MessageListener class.
- Stop Typing (User)
- Stop Typing (Group)
endTyping() Parameters:
endTyping() returns void — the typing indicator is sent as a fire-and-forget operation.
Use the
metadata field of the TypingIndicator class to pass additional custom data along with the typing indicators. The metadata field is a Map<String, String> and can be set using the .metadata property. This data will be received at the receiver end and can be obtained using the same property.Real-time Typing Indicators
In other words, as a recipient, how do I know when someone is typing? UseonTypingStarted and onTypingEnded in MessageListener to receive TypingIndicator events.
- Dart
TypingIndicator with the following fields:
Next Steps
Delivery & Read Receipts
Track message delivery and read status
Transient Messages
Send ephemeral real-time messages like live reactions