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 RequestActivity.static ArticleUiConfig.Builder
builder(Article article)
Create a new builder for RequestActivity.static ArticleUiConfig.Builder
builder(long articleId)
Create a new builder for RequestActivity.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.
-
-
-
Method Detail
-
builder
public static ArticleUiConfig.Builder builder(Article article)
Create a new builder for RequestActivity.- Parameters:
article
- an article model loaded fromHelpCenterProvider
-
builder
public static ArticleUiConfig.Builder builder(long articleId)
Create a new builder for RequestActivity.- Parameters:
articleId
- the id of the article to display
-
builder
public static ArticleUiConfig.Builder builder()
Create a new builder for RequestActivity.Only use this for creating a
UiConfig
for ViewArticleActivity
-
onCreate
protected void onCreate(Bundle savedInstanceState)
-
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.
-
onItemClick
public void onItemClick(<any> parent, View view, int position, long id)
-
onDestroy
protected void onDestroy()
-
-