Package io.smooch.ui
Class ConversationActivityBuilder
- java.lang.Object
-
- io.smooch.ui.ConversationActivityBuilder
-
public class ConversationActivityBuilder extends java.lang.Object
This builder is used to configure theConversationActivity
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.content.Intent
intent(android.content.Context context)
Creates anIntent
for theConversationActivity
with the specified configurationvoid
show(android.content.Context context)
Starts theConversationActivity
with the specified configurationConversationActivityBuilder
withConversationId(java.lang.String conversationId)
Specifies the conversation to be loadedConversationActivityBuilder
withFlags(int flags)
Specifies the intent flags for the conversation activityConversationActivityBuilder
withStartingText(java.lang.String startingText)
Specifies the starting text used to pre-fill the conversation activity text box
-
-
-
Method Detail
-
withFlags
public ConversationActivityBuilder withFlags(int flags)
Specifies the intent flags for the conversation activity- Parameters:
flags
- theIntent
flags- Returns:
- the
ConversationActivityBuilder
-
withStartingText
public ConversationActivityBuilder withStartingText(java.lang.String startingText)
Specifies the starting text used to pre-fill the conversation activity text box- Parameters:
startingText
- the starting text to display- Returns:
- the
ConversationActivityBuilder
-
withConversationId
public ConversationActivityBuilder withConversationId(java.lang.String conversationId)
Specifies the conversation to be loaded- Parameters:
conversationId
- the conversationId to load- Returns:
- the
ConversationActivityBuilder
-
show
public void show(android.content.Context context)
Starts theConversationActivity
with the specified configuration- Parameters:
context
- theContext
from whichContext.startActivity(Intent)
will be invoked
-
intent
public android.content.Intent intent(android.content.Context context)
Creates anIntent
for theConversationActivity
with the specified configuration- Parameters:
context
- theContext
from whichContext.startActivity(Intent)
will be invoked- Returns:
- the constructed
Intent
-
-