|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NetActionRequest
All asynchronous actions in the Home networking API return an NetActionRequest. The NetActionRequest can be used a) to cancel any pending action or b) to identify which Action got completed.
NetActionHandler,
NetActionEvent| Method Summary | |
|---|---|
boolean |
cancel()
Cancels the Action associated with this ActionRequest. |
int |
getActionStatus()
Gets the current status of the requested action. |
int |
getError()
Gets the error value when getActionStatus returns NetActionEvent.ACTION_FAILED. |
float |
getProgress()
Gets the progress of the action in percent (0.0 - 1.0). |
| Method Detail |
|---|
boolean cancel()
float getProgress()
int getActionStatus()
NetActionEvent for possible return values.int getError()
NetActionEvent.ACTION_FAILED. The error code returned will
be equivalent to the error code returned by
NetActionEvent.getError() for the NetActionEvent associated
with the completion of this action request. If the action is not in error
or has not completed, this method SHALL return -1.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||