Client APIs

You can use the client instance obtained in Initialisation to access the 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 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 the messaging service manage persistence store updates internally. Participants are not persisted and must be managed by the app if required.


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 must be managed by the app if required.


Listeners

Profile, participants, and typing events are not managed with store implementation; 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);