Class ViewContentBaseFragment<V extends ViewContentView,​P extends ViewContentPresenter<V>>

    • Constructor Detail

      • ViewContentBaseFragment

        public ViewContentBaseFragment()
    • Method Detail

      • onActivityCreated

        public void onActivityCreated​(@Nullable
                                      android.os.Bundle savedInstanceState)
        Overrides:
        onActivityCreated in class androidx.fragment.app.Fragment
      • onBackPressed

        public void onBackPressed()
        Finish the challenge by submitting a response or by showing a quiz
      • onActivityResult

        public void onActivityResult​(int requestCode,
                                     int resultCode,
                                     @Nullable
                                     android.content.Intent data)
        Overrides:
        onActivityResult in class androidx.fragment.app.Fragment
      • showTakeQuizDialog

        public void showTakeQuizDialog​(boolean isExit)
        Ask user to take the quiz before closing the view content challenge if isExit = true, otherwise notify the user that the quiz must be done to complete the challenge
        Specified by:
        showTakeQuizDialog in interface ViewContentView
        Parameters:
        isExit - true if the dialog is shown before exit
      • showSubmitButton

        protected void showSubmitButton()
        Show the submit button if challenge is shown as alert