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