Chat

The Mobilisten React Native SDK provides various chat-associated APIs for the users - to customize their data like name, email, etc., - to perform actions like start/end SDK chats from their application, to get the chat lists and to control the visibility of certain features/views like launcher visibility, operator image visibility, offline message visibility etc.,

VisitorChat class contains the following properties:

PropertyDatatypeDescription
idStringID of the chat
questionStringThe question with which the chat was initiated
attenderNameStringName of the chat attender
attenderEmailStringEmail of the chat attender
attenderIDStringID of the chat attender
departmentNameStringName of the department to which the chat is associated
feedbackStringFeedback provided for the chat
lastMessageStringLast message in the chat
statusStringThe status of the chat
ratingStringRating given for the chat
unreadCountintUnread message count for the chat
isBotAttenderBooleanFlag to check if the last chat was attended by a bot
lastMessageSenderStringName of the last message sender
lastMessageTimelongTime of the last message in chat
queuePositionintCurrent Queue Position of the chat