Class DepartmentsObserver
- java.lang.Object
-
- com.zopim.android.sdk.data.observers.DepartmentsObserver
-
- All Implemented Interfaces:
- java.util.Observer
public abstract class DepartmentsObserver extends java.lang.Object implements java.util.ObserverAbstract definition of the observer that listens to broadcasts fromLivechatDepartmentsPathobservable
-
-
Constructor Summary
Constructors Constructor and Description DepartmentsObserver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voidupdate(java.util.Map<java.lang.String,Department> departments)Delivers the broadcast fromLivechatDepartmentsPathobservablevoidupdate(java.util.Observable observable, java.lang.Object object)
-
-
-
Method Detail
-
update
public final void update(java.util.Observable observable, java.lang.Object object)- Specified by:
updatein interfacejava.util.Observer
-
update
public abstract void update(java.util.Map<java.lang.String,Department> departments)
Delivers the broadcast fromLivechatDepartmentsPathobservableThis 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
android.app.Activity#runOnUiThread(Runnable)orandroid.os.Looper#getMainLooper().- Parameters:
departments- and their ID available in the chat session
-
-