Android Open Source - Android-Wizard-Framework Task Callback






From Project

Back to project page Android-Wizard-Framework.

License

The source code is released under:

MIT License

If you think the Android project Android-Wizard-Framework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.hps.wizard;
/*from   w w  w.ja  va 2 s  . c  o m*/
import android.os.AsyncTask;

/**
 * Callback interface through which the {@link TaskFragment} will report the task's progress and results back to the {@link AbstractWizardActivity}.
 */
public interface TaskCallback {
  /**
   * Callback method for use in {@link AsyncTask#onPreExecute}. It runs before the task is executed and updates the UI to prepare for the background
   * activities.
   */
  void onPreExecute();

  /**
   * Callback method for use in {@link AsyncTask#onProgressUpdate}. It runs when the background task calls publishProgress(String) and updates the UI to
   * reflect the new progress.
   */
  void onProgressUpdate(String... progress);

  /**
   * Callback method for use in {@link AsyncTask#onCancelled}. It runs when the background task is cancelled.
   */
  void onCancelled();

  /**
   * Callback method for use in {@link AsyncTask#onPostExecute}. It runs after execution and reports whether the validation passed or failed.
   * 
   * @param result
   */
  void onPostExecute(Boolean result);
}




Java Source Code List

com.hps.wizard.AbstractWizardActivity.java
com.hps.wizard.StateFragment.java
com.hps.wizard.TaskCallback.java
com.hps.wizard.TaskFragment.java
com.hps.wizard.ValidationAsyncTask.java
com.hps.wizard.WizardActivity.java
com.hps.wizard.WizardDialog.java
com.hps.wizard.sample.activities.MainActivity.java
com.hps.wizard.sample.states.AreYouSure.java
com.hps.wizard.sample.states.BackgroundValidation.java
com.hps.wizard.sample.states.Choice.java
com.hps.wizard.sample.states.Instructions.java
com.hps.wizard.sample.states.MuppetShow.java
com.hps.wizard.sample.states.Results.java
com.hps.wizard.sample.states.SesameStreet.java
com.hps.wizard.sample.states.Seuss.java