Represents a Stringee client, manages the client's connection. This class provides methods to connect to/disconnect from Stringee server, manage StringeeConversation, receives the connection's events, the incoming call event, StringeeConversation and StringeeMessage change event.
Create a new StringeeClient.
It's the unique identification of the client on Stringee system.
It's the unique identification of the project created on https://developer.stringee.com/.
Whether the client connects to Stringee server:
Whether the client trying to reconnect to Stringee server:
Register to listen to events from StringeeClient.
Connect to Stringee server using the provided access token.
Disconnect from Stringee server.
Register the registration deviceToken for push notifications to Stringee server. For iOS need 2 values for register push:
Register the registration deviceToken for push notifications to Stringee server, and remove the other registration deviceToken with packageName. For iOS need 2 values for register push:
Remove the registration deviceToken for push notifications from Stringee server.
Send a custom message to a user.
Get chat profile. If successful return StringeeChatProfile in callBack['body'].
Get live chat token for connecting to Stringee. If successful return token in callBack['body'].
Update user info.
Get user info. If successful return user in callBack['body'].
Create a new live chat Conversation. If successful return a created StringeeConversation in callBack['body'].
Create a live chat ticket.
Create a new conversation. If successful return a created StringeeConversation in callBack['body'].
Get the conversation by a conversation id. If successful return a StringeeConversation in callBack['body'].
Get the chat 1-1 conversation with other user by other user's id. If successful return a StringeeConversation in callBack['body'].
Get all conversations were saved in local database. If successful return a list of StringeeConversation in callBack['body'].
Get all conversations with ChannelType were saved in local database. If successful return a list of StringeeConversation in callBack['body'].
Get lastest list of conversations from Stringee server. If successful return a list of StringeeConversation in callBack['body'].
Get lastest list of unread conversations from Stringee server. If successful return a list of StringeeConversation in callBack['body'].
Get list of conversation which have updated time smaller than datetime from Stringee server. If successful return a list of StringeeConversation in callBack['body'].
Get list of unread conversation which have updated time smaller than datetime from Stringee server. If successful return a list of StringeeConversation in callBack['body'].
Get list of conversation which have updated time greater than datetime from Stringee server. If successful return a list of StringeeConversation in callBack['body'].
Get list of unread conversation which have updated time greater than datetime from Stringee server. If successful return a list of StringeeConversation in callBack['body'].
Clear local database.
Get count of unread conversation. If successful return count of unread StringeeConversation in callBack['body'].
Get list of chat request from Stringee server. If successful return a list of StringeeChatRequest in callBack['body'].
Block a user with userId in chat.
Prevent adding to conversation with conversation id.
Set connection trust all ssl.
Set connection list ssl with certificate.
Set connection list ssl with public key. For Android, using public key. For Ios, using RSA public key.
Close event stream.