|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.ignition.core.tasks.IgnitedAsyncTaskDefaultHandler<ContextT,ProgressT,ReturnT>
ContextT - ProgressT - ReturnT - public abstract class IgnitedAsyncTaskDefaultHandler<ContextT extends android.content.Context,ProgressT,ReturnT>
Default implementation of the delegate handler interface with all callbacks methods defined to
have empty bodies. Subclass this if you do not need to implement all methods of
IgnitedAsyncTaskHandler. This class also handles a Context reference for you, so it's
always preferred to use this class over implementing the handler interface yourself.
| Constructor Summary | |
|---|---|
IgnitedAsyncTaskDefaultHandler(ContextT context)
|
|
| Method Summary | |
|---|---|
ContextT |
getContext()
|
boolean |
onTaskCompleted(ContextT context,
ReturnT result)
Return true from this method if you want to swallow the event; it will then not be passed on to the task itself. |
boolean |
onTaskFailed(ContextT context,
Exception error)
Return true from this method if you want to swallow the event; it will then not be passed on to the task itself. |
boolean |
onTaskProgress(ContextT context,
ProgressT... progress)
Return true from this method if you want to swallow the event; it will then not be passed on to the task itself. |
boolean |
onTaskStarted(ContextT context)
Return true from this method if you want to swallow the event; it will then not be passed on to the task itself. |
boolean |
onTaskSuccess(ContextT context,
ReturnT result)
Return true from this method if you want to swallow the event; it will then not be passed on to the task itself. |
void |
setContext(ContextT context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IgnitedAsyncTaskDefaultHandler(ContextT context)
| Method Detail |
|---|
public final ContextT getContext()
getContext in interface IgnitedAsyncTaskHandler<ContextT extends android.content.Context,ProgressT,ReturnT>public final void setContext(ContextT context)
setContext in interface IgnitedAsyncTaskHandler<ContextT extends android.content.Context,ProgressT,ReturnT>public boolean onTaskStarted(ContextT context)
IgnitedAsyncTaskHandler
onTaskStarted in interface IgnitedAsyncTaskHandler<ContextT extends android.content.Context,ProgressT,ReturnT>
public boolean onTaskProgress(ContextT context,
ProgressT... progress)
IgnitedAsyncTaskHandler
onTaskProgress in interface IgnitedAsyncTaskHandler<ContextT extends android.content.Context,ProgressT,ReturnT>
public boolean onTaskCompleted(ContextT context,
ReturnT result)
IgnitedAsyncTaskHandler
onTaskCompleted in interface IgnitedAsyncTaskHandler<ContextT extends android.content.Context,ProgressT,ReturnT>
public boolean onTaskSuccess(ContextT context,
ReturnT result)
IgnitedAsyncTaskHandler
onTaskSuccess in interface IgnitedAsyncTaskHandler<ContextT extends android.content.Context,ProgressT,ReturnT>
public boolean onTaskFailed(ContextT context,
Exception error)
IgnitedAsyncTaskHandler
onTaskFailed in interface IgnitedAsyncTaskHandler<ContextT extends android.content.Context,ProgressT,ReturnT>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||