public class Network extends Object implements HasNetworkHandlers
| Modifier and Type | Class and Description |
|---|---|
static class |
Network.CacheManifestImpl |
static class |
Network.Impl |
static class |
Network.SafariImpl |
static class |
Network.UnsupportedImpl |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addNetworkHandler(NetworkEvent.Handler handler)
Add a network events handler
|
static Network |
get()
Retrieve the Network instance
|
boolean |
isOnLine()
Returns true if the application has network connection
|
boolean |
isSupported()
Check if this browser support Crux offLine working.
|
public static Network get()
public boolean isOnLine()
isOnLine in interface HasNetworkHandlerspublic com.google.gwt.event.shared.HandlerRegistration addNetworkHandler(NetworkEvent.Handler handler)
addNetworkHandler in interface HasNetworkHandlershandler - the handlerpublic boolean isSupported()
Copyright © 2015. All rights reserved.