Open a comment creation page directly

Show the create a comment screen directly in your Android app.

This approach allows you to open a comment creation screen. When implemented, a user sees the comment creation screen directly above the full Conversation screen.

πŸ“˜

When the Conversation is in readOnlyMode, only the Conversation screen will be shown and the new comment screen won't open.



Implementation

Use the following steps to configure the Conversation:


  1. In onCreate() of an article activity, add the create comment to the Activity.
SpotIm.getCreateCommentIntent(context, CONVERSATION_ID, object :
    SpotCallback<Intent> {
        override fun onSuccess(intent: Intent) {
            startActivity(intent)
        }

        override fun onFailure(exception: SpotException) {
            //Handle error here
    }
})

  1. (Optional) Customize the Conversation.