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:
- In
onCreate()
of an article activity, add the create comment to theActivity
.
SpotIm.getCreateCommentIntent(context, CONVERSATION_ID, object :
SpotCallback<Intent> {
override fun onSuccess(intent: Intent) {
startActivity(intent)
}
override fun onFailure(exception: SpotException) {
//Handle error here
}
})
- (Optional) Customize the Conversation.
Updated 4 months ago