Typing Indicators
Overview
This guide covers text typing indicators within a conversation.
Before you begin, make sure you added the SDK to your app and you are able to create a conversation.
NOTE: A step-by-step tutorial to build a chat application is available here.
This guide will make use of the following concepts:
- Conversation Events -
text:typing:on(start typing) andtext:typing:off(stop typing) events that fire on a Conversation, after you are a Member
Typing Indicators
Typing Indicators are used to notify conversation members on whether or not a member is currently typing a text message.
Send typing state events
Set the Member's current typing (on/off) state when they start or stop typing a text message:
Listen for the state of other members
The following will listen for the typing (on/off) events created by the above calls:
Add NXMConversationDelegate as an extension to a ViewController or similar, and implement conversation(_ conversation: NXMConversation, didReceive event: NXMTextTypingEvent):
Note: The first method below is required when implementing NXMConversationDelegate:
Have a ViewController, or similar, conform to NXMConversationDelegate and implement conversation:didReceiveTypingEvent::
Note: The first method below is required when implementing NXMConversationDelegate: