Typing Status
#
Send typing statusYou can able to send the typing/gone status to the users, so that they can aware of whether user is typing the message or not. if you want send the typing status for a user, you can utilise the below method.
Argument | Type | Description |
---|---|---|
TO_JID | String | jid of the chat user or group |
CHAT_TYPE | String | "chat" for single chat, "groupchat" for group chat |
While user starts typing the message in the input box of the chat window, call the below method to send the composing status, so that they can show a typing message in the header/recent chat.
Once user stopped/finished typing the message in the input box of the chat window, call the below method to send the gone status, so that they can hide a typing message in the header/recent chat.
#
Observe the typing statusTo observe the typing status changes, you can use the below method to setup listener for the typing events.
Argument | Type | Description |
---|---|---|
singleOrgroupJid | String | jid of the chat user or Group |
userJid | String | jid of the chat user of the group |
status | String | The status param will be either composing or Gone |
- Dart
- Response
note
composing
means user is typing the message.
Gone
means user stopped the typing