|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OfflineMode
Applications that need to have an advanced offline mode use this interface to
connect to TouchKit. By default the framework uses an instance of
DefaultOfflineMode
that simply displays a sad face and a message why
the online app cannot be used.
Add a GWT deferred binding rule in your widgetset to replace this with your
own implementation. An example:
Nested Class Summary | |
---|---|
static interface |
OfflineMode.ActivationEvent
Holds the reason for why the offline mode was activated. |
static class |
OfflineMode.ActivationReason
|
Method Summary | |
---|---|
void |
activate(OfflineMode.ActivationEvent event)
This method is called when a TouchKit app decides to go offline. |
boolean |
deactivate()
This method is called when TouchKit detects that it might be possible to go online again (e.g. |
boolean |
isActive()
|
Method Detail |
---|
void activate(OfflineMode.ActivationEvent event)
event
- Details about the activation.boolean deactivate()
If you have implemented a more advanced offline mode, override this method and gracefully return to normal operation. In that case return false
boolean isActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |