Class ViewArticleActivity

    • Field Detail

      • EXTRA_SIMPLE_ARTICLE

        public static final java.lang.String EXTRA_SIMPLE_ARTICLE
        See Also:
        Constant Field Values
      • EXTRA_ARTICLE_VOTING_ENABLED

        public static final java.lang.String EXTRA_ARTICLE_VOTING_ENABLED
        See Also:
        Constant Field Values
    • Constructor Detail

      • ViewArticleActivity

        public ViewArticleActivity()
    • Method Detail

      • startActivity

        public static void startActivity(Context context,
                                         Article article,
                                         boolean contactUsButtonEnabled,
                                         ZendeskFeedbackConfiguration feedbackConfiguration,
                                         boolean articleVotingEnabled)
        Starts the Activity on the given Article.
        Parameters:
        context - Context to be used for Activity creation
        article - article model to be passed to the Activity for rendering
        contactUsButtonEnabled - true to enable the Contact Us FAB, false to disable
        feedbackConfiguration - The feedback configuration required to create a request
        articleVotingEnabled - true to enable article voting, false to disable
      • startActivity

        public static void startActivity(Context context,
                                         SimpleArticle simpleArticle,
                                         boolean contactUsButtonEnabled,
                                         ZendeskFeedbackConfiguration feedbackConfiguration,
                                         boolean articleVotingEnabled)
        Starts the Activity on the given SimpleArticle.
        Parameters:
        context - Context to be used for Activity creation
        simpleArticle - simplified article model to be passed to the Activity for rendering
        contactUsButtonEnabled - true to enable the Contact Us FAB, false to disable
        feedbackConfiguration - The feedback configuration required to create a request
        articleVotingEnabled - true to enable article voting, false to disable
      • onOptionsItemSelected

        public boolean onOptionsItemSelected(MenuItem item)
      • setLoadingState

        protected void setLoadingState(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()