|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is sent to a WorkListener as the Work is processed by a WorkManager.
Field Summary | |
---|---|
static int |
WORK_ACCEPTED
Work has been accepted |
static int |
WORK_COMPLETED
Work has completed. |
static int |
WORK_REJECTED
Work has been rejected. |
static int |
WORK_STARTED
Work is currently running. |
Method Summary | |
---|---|
WorkException |
getException()
This returns the exception if any in the case of WORK_COMPLETED. |
long |
getStartDuration()
This returns 0 in the current implementation. |
int |
getType()
This returns WORK_ACCEPTED etc |
Work |
getWork()
This returns a copy of the Work in progress. |
Field Detail |
public static final int WORK_ACCEPTED
public static final int WORK_REJECTED
public static final int WORK_STARTED
public static final int WORK_COMPLETED
Method Detail |
public int getType()
public Work getWork()
public long getStartDuration()
public WorkException getException()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |