Klasse SimpleProgressTask<Params,Progress,Result>

java.lang.Object
android.os.AsyncTask<Params,Progress,Result>
eltos.simpledialogfragment.SimpleProgressTask<Params,Progress,Result>

public abstract class SimpleProgressTask<Params,Progress,Result> extends android.os.AsyncTask<Params,Progress,Result>
An AsyncTask for use with SimpleProgressDialog Automatically reflects the task's states in the dialog.

Created by eltos on 27.05.21.

  • Verschachtelte Klassen - Übersicht

    Von Klasse geerbte verschachtelte Klassen/Schnittstellen android.os.AsyncTask

    android.os.AsyncTask.Status
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
     

    Von Klasse geerbte Felder android.os.AsyncTask

    SERIAL_EXECUTOR, THREAD_POOL_EXECUTOR
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    protected void
     
    protected void
     
    protected void
    Updates the progress dialog by trying to guess the meaning of the supplied parameter(s):
    protected void
     

    Von Klasse geerbte Methoden android.os.AsyncTask

    cancel, doInBackground, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onCancelled, publishProgress

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

  • Konstruktordetails

    • SimpleProgressTask

      public SimpleProgressTask()
  • Methodendetails

    • registerDialog

      protected void registerDialog(SimpleProgressDialog dialog)
    • onPreExecute

      @CallSuper protected void onPreExecute()
      Setzt außer Kraft:
      onPreExecute in Klasse android.os.AsyncTask<Params,Progress,Result>
    • onPostExecute

      @CallSuper protected void onPostExecute(Result result)
      Setzt außer Kraft:
      onPostExecute in Klasse android.os.AsyncTask<Params,Progress,Result>
    • onProgressUpdate

      protected void onProgressUpdate(Progress... values)
      Updates the progress dialog by trying to guess the meaning of the supplied parameter(s):

      - if values is of numeric type - if values[0] < 0, then progress is indeterminate - if values[0] >= 0, then (int) values[0] is set as progress - if values[1] > 0, then (int) values[1] is set as max, otherwise max defaults to 100 - if values[2] >= 0, then (int) values[2] is set as secondary progress - if values is of CharSequence type, then values[0] is set as info text and progress to indeterminate - if values is a Pair of a Number and a String, the above is applied to either value of the pair

      Setzt außer Kraft:
      onProgressUpdate in Klasse android.os.AsyncTask<Params,Progress,Result>