You can use Comapi client instance obtained in Initialisation to access SDK APIs.
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 (conversations and messages) can be accessed through
// messaging related service calls client.service().messaging();
// messaging related service calls client.rxService().messaging();
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 related APIs can be accessed through
// user profile related service calls client.service().profile();
// user profile related service calls client.rxService().profile();
Profiles are NOT persisted and need to be managed by the app if needed.
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);