Package com.zopim.android.sdk.data
Class ConnectionPath
- java.lang.Object
-
- java.util.Observable
-
- com.zopim.android.sdk.data.Path<Connection>
-
- com.zopim.android.sdk.data.ConnectionPath
-
- All Implemented Interfaces:
- ObservableTrigger
public class ConnectionPath extends Path<Connection>
Connection path definitionAllows 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.
- See Also:
Connection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
ConnectionPath.ConnectivityReceiver
This is aandroid.content.BroadcastReceiver
which will receive the network availability events.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description Connection
getData()
Will returnConnection
with the state based on combined connection state of the device and the web widgetstatic ConnectionPath
getInstance()
Gets singleton instance ofConnectionPath
-
Methods inherited from class com.zopim.android.sdk.data.Path
addObserver, broadcast, broadcast, deleteObserver, deleteObservers, finalize, isClearRequired, notifyObservers, trigger
-
-
-
-
Method Detail
-
getInstance
public static ConnectionPath getInstance()
Gets singleton instance ofConnectionPath
- Returns:
- connection path instance
-
getData
public Connection getData()
Will returnConnection
with the state based on combined connection state of the device and the web widget- Specified by:
getData
in classPath<Connection>
- Returns:
- connection pojo
-
-