public interface TaskMonitorSupport
AsyncTask
s Note that
you may attach many TaskMonitor
s to the same AsyncTask
. They all will be
notified about task state changes in the sequence they were added.Modifier and Type | Method and Description |
---|---|
void |
addMonitor(TaskMonitor monitor)
Adds a
TaskMonitor which is notified about RunStateFlag changes |
void |
clearMonitors()
Removes all
TaskMonitor s |
int |
getMonitorCount()
Tells how many
TaskMonitor s are registered |
TaskMonitor[] |
getMonitors()
Return the current
TaskMonitor s if any |
boolean |
hasMonitor()
Tells whether there are
TaskMonitor s registered |
void |
removeMonitor(TaskMonitor monitor)
Removes the given
TaskMonitor from the registration |
void addMonitor(TaskMonitor monitor)
TaskMonitor
which is notified about RunStateFlag
changesvoid removeMonitor(TaskMonitor monitor)
TaskMonitor
from the registrationTaskMonitor[] getMonitors()
TaskMonitor
s if anyboolean hasMonitor()
TaskMonitor
s registeredint getMonitorCount()
TaskMonitor
s are registeredvoid clearMonitors()
TaskMonitor
sCopyright © 2014 EsprIT-Systems. All Rights Reserved.