AI Integration Quick Reference
AI Integration Quick Reference
Send a Typing Indicator
Start Typing
UsestartTyping() with a TypingIndicator object to notify the receiver that you’re typing.
- Java (User)
- Kotlin (User)
- Java (Group)
- Kotlin (Group)
Stop Typing
UseendTyping() to notify the receiver that you’ve stopped typing.
- Java (User)
- Kotlin (User)
- Java (Group)
- Kotlin (Group)
Use
setMetadata() on TypingIndicator to pass additional custom data. Retrieve it with getMetadata() on the receiver side.Real-time Typing Indicators
UseonTypingStarted and onTypingEnded in MessageListener to receive typing events.
- Java
- Kotlin
TypingIndicator class consists of the below parameters:
TypingIndicator Payload Structure
TypingIndicator Object
TypingIndicator Object
The
TypingIndicator object contains information about typing status:Sample TypingIndicator Object:
User Object (Typing)
User Object (Typing)
The nested
User object in sender contains:Next Steps
Delivery & Read Receipts
Track message delivery and read status
Receive Messages
Handle incoming messages with listeners
Retrieve Conversations
Fetch conversation list
Real-Time Listeners
Learn more about event listeners