Package io.smooch.ui
Class ConversationActivityBuilder
- java.lang.Object
-
- io.smooch.ui.ConversationActivityBuilder
-
public class ConversationActivityBuilder extends java.lang.ObjectThis builder is used to configure theConversationActivity
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.content.Intentintent(android.content.Context context)Creates anIntentfor theConversationActivitywith the specified configurationvoidshow(android.content.Context context)Starts theConversationActivitywith the specified configurationConversationActivityBuilderwithConversationId(java.lang.String conversationId)Specifies the conversation to be loadedConversationActivityBuilderwithFlags(int flags)Specifies the intent flags for the conversation activityConversationActivityBuilderwithStartingText(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- theIntentflags- 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 theConversationActivitywith the specified configuration- Parameters:
context- theContextfrom whichContext.startActivity(Intent)will be invoked
-
intent
public android.content.Intent intent(android.content.Context context)
Creates anIntentfor theConversationActivitywith the specified configuration- Parameters:
context- theContextfrom whichContext.startActivity(Intent)will be invoked- Returns:
- the constructed
Intent
-
-