public class ComapiChatClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ComapiChatClient.ExtHelper |
| Modifier | Constructor and Description |
|---|---|
protected |
ComapiChatClient(android.app.Application app,
RxComapiClient client,
ChatConfig chatConfig,
EventsHandler eventsHandler,
CallbackAdapter callbackAdapter)
Recommended constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ParticipantsListener participantsListener)
Registers listener for changes in participant list in conversations.
|
void |
addListener(ProfileListener profileListener)
Registers listener for changes in profile details.
|
void |
addListener(TypingListener typingListener)
Registers listener for user is typing/finished typing events.
|
void |
close(android.content.Context context)
Method to close the client state, won't be usable anymore.
|
<any> |
copyLogs(java.io.File file)
Gets the content of internal log files merged into provided file.
|
ProfileManager |
createProfileManager(android.content.Context context)
Create ProfileManager to manage profile data.
|
<any> |
getLogs()
Deprecated.
Use safer version -
this#copyLogs(File) instead. |
Session |
getSession()
Gets the active session data.
|
int |
getState()
Gets the internal state of the SDK.
|
void |
removeListener(ParticipantsListener participantsListener)
Removes listener for changes in participant list in conversations.
|
void |
removeListener(ProfileListener profileListener)
Removes listener for changes in profile details.
|
void |
removeListener(TypingListener typingListener)
Removes listener for user is typing/finished typing events.
|
RxChatServiceAccessor |
rxService()
Access to reactive Comapi service APIs.
|
ChatServiceAccessor |
service()
Access to Comapi service APIs.
|
protected ComapiChatClient(android.app.Application app,
RxComapiClient client,
ChatConfig chatConfig,
EventsHandler eventsHandler,
CallbackAdapter callbackAdapter)
app - Application instance.client - Comapi Foundation SDK client.chatConfig - SDK configuration.eventsHandler - Socket events handler.callbackAdapter - Adapts Observables to callback APIs.public Session getSession()
public RxChatServiceAccessor rxService()
public ChatServiceAccessor service()
public int getState()
public <any> copyLogs(java.io.File file)
file - File to merge internal logs into.@Deprecated public <any> getLogs()
this#copyLogs(File) instead.copyLogs(File) and loading the content line by line.public void close(android.content.Context context)
context - Context.public void addListener(ParticipantsListener participantsListener)
participantsListener - Listener for changes in participant list in conversations.public void removeListener(ParticipantsListener participantsListener)
participantsListener - Listener for changes in participant list in conversations.public void addListener(ProfileListener profileListener)
profileListener - Listener for changes in in profile details.public void removeListener(ProfileListener profileListener)
profileListener - Listener for changes in in profile details.public void addListener(TypingListener typingListener)
typingListener - Listener for user is typing/finished typing events.public void removeListener(TypingListener typingListener)
typingListener - Listener for user is typing/finished typing events.public ProfileManager createProfileManager(android.content.Context context)
context - Application context.