Package zendesk.support.guide
Class ViewArticleActivity
- java.lang.Object
-
- AppCompatActivity
-
- zendesk.support.guide.ViewArticleActivity
-
public class ViewArticleActivity extends AppCompatActivity
Activity used to render a Help Center articleThe recommended method of creating the activity is by using the following
methods.
-
-
Constructor Summary
Constructors Constructor and Description ViewArticleActivity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ArticleUiConfig.Builder
builder()
Create a new builder for ViewArticleActivity.static ArticleUiConfig.Builder
builder(Article article)
Create a new builder for ViewArticleActivity.static ArticleUiConfig.Builder
builder(long articleId)
Create a new builder for ViewArticleActivity.protected void
onCreate(Bundle savedInstanceState)
protected void
onDestroy()
void
onItemClick(<any> parent, View view, int position, long id)
boolean
onOptionsItemSelected(MenuItem item)
protected void
onStart()
protected void
onStop()
protected void
setLoadingState(zendesk.support.guide.ViewArticleActivity.LoadingState loadingState)
Sets the loading state of this fragment.void
showContactZendesk()
void
showLoadingErrorState(int snackbarText)
-
-
-
Method Detail
-
builder
public static ArticleUiConfig.Builder builder(Article article)
Create a new builder for ViewArticleActivity.- Parameters:
article
- an article model loaded fromHelpCenterProvider
-
builder
public static ArticleUiConfig.Builder builder(long articleId)
Create a new builder for ViewArticleActivity.- Parameters:
articleId
- the id of the article to display
-
builder
public static ArticleUiConfig.Builder builder()
Create a new builder for ViewArticleActivity.Only use this for creating a
zendesk.commonui.UiConfig
for ViewArticleActivity
-
onCreate
protected void onCreate(Bundle savedInstanceState)
-
showContactZendesk
public void showContactZendesk()
-
onStart
protected void onStart()
-
onStop
protected void onStop()
-
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
-
setLoadingState
protected void setLoadingState(zendesk.support.guide.ViewArticleActivity.LoadingState loadingState)
Sets the loading state of this fragment.This controls the visibility of the views in this fragment and starts / stops progress indicators.
- Parameters:
loadingState
- The loading state to set.
-
showLoadingErrorState
public void showLoadingErrorState(int snackbarText)
-
onItemClick
public void onItemClick(<any> parent, View view, int position, long id)
-
onDestroy
protected void onDestroy()
-
-