Read & Unread Indicators

To find out the number of notifications in the Inbox according to their status, this method is performed:

Inbox.Companion.getMessagesCount(context, new InboxCountersCallback(context) {
  @Override
    public void onSuccess(InboxCounters inboxCounters) {
    //DO SOMETHING
  }
});
Inbox.getMessagesCount(context, object : InboxCountersCallback(context) {
    override fun onSuccess(inboxCounters: InboxCounters?) {
        // Use the unread and total message counts
    }
})