Methods Summary |
---|
public abstract void | applyChangesLocked(NotificationRecord record)Apply any computed changes to the notification record. This method will be
called on the main service thread, synchronized on he mNotificationList.
|
public boolean | cancel(boolean mayInterruptIfRunning)
if (mState == START) { // can't cancel if running or done
mState = CANCELLED;
return true;
}
return false;
|
public long | getDelay(java.util.concurrent.TimeUnit unit)
return unit.convert(mDelay, TimeUnit.MILLISECONDS);
|
public java.lang.String | getKey()
return mKey;
|
public boolean | isCancelled()
return mState == CANCELLED;
|
public boolean | isDone()
return mState == DONE;
|
public void | run()
if (mState == START) {
mState = RUNNING;
work();
mState = DONE;
synchronized (this) {
notifyAll();
}
}
|
public abstract void | work()Analyse the notification. This will be called on a worker thread. To
avoid concurrency issues, do not use held references to modify the
{@link NotificationRecord}.
|