Kotlin

Fetch the Conversation

Inside MainActivity class add the conversation property:

Update body of the getConversation() method:

Please make sure to replace CONVERSATION_ID with the conversation id you created during a previous step.

The above method loads the conversation using client.getConversation and then it loads all events from the conversation.

Note: Conversation id is retrieved from Config.CONVERSATION_ID provided in the previous step.