public class CallbackMessage extends Message
| Modifier and Type | Field and Description |
|---|---|
static int |
ON_ADDED |
static int |
ON_AFTER_RUN |
static int |
ON_CANCEL |
static int |
ON_DONE |
static int |
ON_RUN |
| Constructor and Description |
|---|
CallbackMessage() |
| Modifier and Type | Method and Description |
|---|---|
Job |
getJob() |
int |
getResultCode() |
java.lang.Throwable |
getThrowable() |
int |
getWhat() |
boolean |
isByUserRequest() |
protected void |
onRecycled() |
void |
set(Job job,
int what) |
void |
set(Job job,
int what,
boolean byUserRequest,
java.lang.Throwable throwable) |
void |
set(Job job,
int what,
int resultCode) |
public static final int ON_ADDED
public static final int ON_RUN
public static final int ON_CANCEL
public static final int ON_DONE
public static final int ON_AFTER_RUN
protected void onRecycled()
onRecycled in class Messagepublic void set(Job job, int what)
public void set(Job job, int what, int resultCode)
public void set(Job job, int what, boolean byUserRequest, @Nullable java.lang.Throwable throwable)
public int getWhat()
public int getResultCode()
public boolean isByUserRequest()
public Job getJob()
@Nullable public java.lang.Throwable getThrowable()