com.github.ignition.core.tasks
Interface IgnitedAsyncTaskContextHandler<ProgressT,ReturnT>

Type Parameters:
ReturnT -
All Known Implementing Classes:
IgnitedAsyncTask

public interface IgnitedAsyncTaskContextHandler<ProgressT,ReturnT>

To be implemented by Context classes that whish to receive callbacks about task status and progress updates.

Author:
Matthias Kaeppler

Method Summary
 boolean onTaskCompleted(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(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(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()
          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(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.
 

Method Detail

onTaskStarted

boolean onTaskStarted()
Return true from this method if you want to swallow the event; it will then not be passed on to the task itself.


onTaskProgress

boolean onTaskProgress(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.


onTaskCompleted

boolean onTaskCompleted(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.


onTaskSuccess

boolean onTaskSuccess(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.


onTaskFailed

boolean onTaskFailed(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.



Copyright © 2012. All Rights Reserved.