|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasen.event.JasenAutoUpdateListener
Listens for update events.
This listener is notified when the auto update engine passes through the various stages of updating, as inicated by the method signatutes.
NOTE: It is VERY important that extended classes do not block inside event callbacks.
When the auto update engine notifies the listener, in all cases (except onUpdateEnd) the
auto update engine will block until the notification has completed.
Field Summary | |
static int |
DO_NOTHING
|
static int |
RESTART_ENGINE
|
Constructor Summary | |
JasenAutoUpdateListener()
|
Method Summary | |
abstract boolean |
onAfterUpdate()
Called when an auto update completion signalled an engine restart and the engine has been restarted. |
abstract boolean |
onBeforeUpdate()
Called before an update commences |
abstract void |
onUpdateDownload(long bytes)
Called during the download of an update |
abstract boolean |
onUpdateEnd(JasenAutoUpdateReport report)
Called when an auto update completes, but before any remaining tasks (like restarting) have completed |
abstract boolean |
onUpdateStart(JasenAutoUpdateParcelWrapper parcel)
Called when an update commences |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DO_NOTHING
public static final int RESTART_ENGINE
Constructor Detail |
public JasenAutoUpdateListener()
Method Detail |
public abstract boolean onUpdateStart(JasenAutoUpdateParcelWrapper parcel)
parcel
- The parcel of data containig the details of the update
public abstract boolean onUpdateEnd(JasenAutoUpdateReport report)
report
- The report from the update event
public abstract void onUpdateDownload(long bytes)
bytes
- public abstract boolean onAfterUpdate()
public abstract boolean onBeforeUpdate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |