Package android.os
Enum AsyncTask.Status
- java.lang.Object
-
- java.lang.Enum<AsyncTask.Status>
-
- android.os.AsyncTask.Status
-
- All Implemented Interfaces:
Serializable,Comparable<AsyncTask.Status>
public static enum AsyncTask.Status extends Enum<AsyncTask.Status>
Indicates the current status of the task. Each status will be set only once during the lifetime of a task.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FINISHEDIndicates thatAsyncTask.onPostExecute(Result)has finished.PENDINGIndicates that the task has not been executed yet.RUNNINGIndicates that the task is running.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AsyncTask.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static AsyncTask.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PENDING
public static final AsyncTask.Status PENDING
Indicates that the task has not been executed yet.
-
RUNNING
public static final AsyncTask.Status RUNNING
Indicates that the task is running.
-
FINISHED
public static final AsyncTask.Status FINISHED
Indicates thatAsyncTask.onPostExecute(Result)has finished.
-
-
Method Detail
-
values
public static AsyncTask.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AsyncTask.Status c : AsyncTask.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AsyncTask.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-