public abstract class ConnectionObserver
extends java.lang.Object
implements java.util.Observer
ConnectionPath
observableConstructor and Description |
---|
ConnectionObserver() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
update(Connection connection)
Delivers the broadcast from
ConnectionPath observable |
void |
update(java.util.Observable observable,
java.lang.Object object) |
public final void update(java.util.Observable observable, java.lang.Object object)
update
in interface java.util.Observer
protected abstract void update(Connection connection)
ConnectionPath
observable
This broadcast arrives on a non-UI thread.
Keep in mind that if updating UI elements you need to do so on the main thread using Activity.runOnUiThread(Runnable)
or Looper.getMainLooper()
.
connection
- The current connection state