public class ConnectionPath extends Path<Connection>
Allows subscription to connectivity broadcast updates and retrieval of the current connection state. If there is nobody to listen to this path it will not emit any broadcasts.
Connection
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionPath.ConnectivityReceiver
This is a
BroadcastReceiver which will receive the network
availability events. |
Modifier and Type | Method and Description |
---|---|
Connection |
getData()
Will return
Connection with the state based on combined connection state of the device and the web widget |
static ConnectionPath |
getInstance()
Gets singleton instance of
ConnectionPath |
broadcast, broadcast, finalize, isClearRequired, notifyObservers
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
public static ConnectionPath getInstance()
ConnectionPath
public Connection getData()
Connection
with the state based on combined connection state of the device and the web widgetgetData
in class Path<Connection>