You can use Comapi client instance obtained in Initialisation to access SDK APIs.
session
Session session = client.getSession().getSession();
// check if session is successfully started
session.isSuccessfullyCreated();
// user profile id for which the session was opened
session.getProfileId();
messaging
Messaging (conversations and messages) can be accessed through
// messaging related service calls
client.service().messaging();
or
// messaging related service calls
client.rxService().messaging();
messaging data
Messages and Conversations API calls in messaging service will manage persistence store updates internally. Participants are NOT persisted and need to be managed by the app if needed.
profiles
Profiles related APIs can be accessed through
// user profile related service calls
client.service().profile();
or
// user profile related service calls
client.rxService().profile();
profiles data
Profiles are NOT persisted and need to be managed by the app if needed.
Listeners
Profile, participants and typing events are not managed with store implementation and the app should register appropriate listeners for relevant events.
/* add events listener:
* ProfileListener - changes to user profile details
* ParticipantsListener - changes to participant list in conversation
* TypingListener - user started/stopped typing in a conversation
*/
addListener(listener);
// remove events listener
removeListener(listener);