Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public interface Observer
Observer is the interface to be implemented by objects that
receive notification of updates on an Observable object.See also
Methods
public abstract void update(Observable observable, Object data) | This method is called if the specified Observable object’s notifyObservers method is called (because the Observable object has been updated. |
Method details
update
public abstract void update(Observable observable, Object data)This method is called if the specified
Observable object’s
notifyObservers method is called (because the Observable
object has been updated.Parameters
observableObservable- the
Observableobject. dataObject- the data passed to
Observable#notifyObservers(Object).