Package zendesk.support.guide
Class ArticleUiConfig.Builder
- java.lang.Object
- 
- zendesk.support.guide.ArticleUiConfig.Builder
 
- 
- Enclosing class:
- ArticleUiConfig
 
 
 public static class ArticleUiConfig.Builder extends java.lang.ObjectThis builder is used to generate an instance ofArticleUiConfig
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description UiConfigconfig()Create aUiConfigfor the passed in configuration options.Intentintent(Context context, java.util.List<UiConfig> uiConfigs)Create anIntentto start theViewArticleActivitywith the specified configuration options.Intentintent(Context context, UiConfig... uiConfigs)Create anIntentto start theViewArticleActivitywith the specified configuration options.voidshow(Context context, java.util.List<UiConfig> uiConfigs)Shows the activity.voidshow(Context context, UiConfig... uiConfigs)Shows the activity.ArticleUiConfig.BuilderwithContactUsButtonVisible(boolean contactUsVisible)Define which screens the "ContactUs" Floating Action Button should be shown on.ArticleUiConfig.BuilderwithDeflectionEnabled(boolean deflectionEnabled)Specifies whether a deflection mechanism should be shown (if one is present) when the contact us button is pressed.
 
- 
- 
- 
Constructor Detail- 
Builderpublic Builder(long articleId) Constructs an instance from the given articleId and title- Parameters:
- articleId- The ID of the article you want to display
 
 - 
Builderpublic Builder(Article article) Constructs an instance from the given article model- Parameters:
- article- The article that you want to display
 
 - 
Builderpublic Builder() Constructs an instance with a blank configuration
 
- 
 - 
Method Detail- 
withContactUsButtonVisiblepublic ArticleUiConfig.Builder withContactUsButtonVisible(boolean contactUsVisible) Define which screens the "ContactUs" Floating Action Button should be shown on.- Parameters:
- contactUsVisible- Boolean value to determine where the contact button is visible
 
 - 
withDeflectionEnabledpublic ArticleUiConfig.Builder withDeflectionEnabled(boolean deflectionEnabled) Specifies whether a deflection mechanism should be shown (if one is present) when the contact us button is pressed. If this isfalse, the button press will navigate directly to theRequestActivity. If not specified, a default value oftrueis used.- Parameters:
- deflectionEnabled- whether a deflection mechanism will be shown if present.
- Returns:
- The Builder
 
 - 
showpublic void show(Context context, UiConfig... uiConfigs)Shows the activity.- Parameters:
- context- The context which- startActivitywill be invoked on
- uiConfigs- Configurations for Activities that can be started from ViewArticleActivity.
 
 - 
showpublic void show(Context context, java.util.List<UiConfig> uiConfigs)Shows the activity.- Parameters:
- context- The context which- startActivitywill be invoked on
- uiConfigs- Configurations for Activities that can be started from ViewArticleActivity.
 
 - 
intentpublic Intent intent(Context context, UiConfig... uiConfigs)Create anIntentto start theViewArticleActivitywith the specified configuration options.- Parameters:
- context- The context which- startActivitywill be invoked on
- uiConfigs- Configurations for Activities that can be started from ViewArticleActivity.
- Returns:
- an  Intent for ViewArticleActivitywith the specified configuration options
 
 - 
intentpublic Intent intent(Context context, java.util.List<UiConfig> uiConfigs)Create anIntentto start theViewArticleActivitywith the specified configuration options.- Parameters:
- context- The context which- startActivitywill be invoked on
- uiConfigs- Configurations for Activities that can be started from ViewArticleActivity.
- Returns:
- an  Intent for ViewArticleActivitywith the specified configuration options
 
 - 
configpublic UiConfig config() Create aUiConfigfor the passed in configuration options.
 
- 
 
-