Class DepartmentsObserver

  • All Implemented Interfaces:
    java.util.Observer


    public abstract class DepartmentsObserver
    extends java.lang.Object
    implements java.util.Observer
    Abstract definition of the observer that listens to broadcasts from LivechatDepartmentsPath observable
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      protected abstract void update(java.util.Map<java.lang.String,Department> departments)
      Delivers the broadcast from LivechatDepartmentsPath observable
      void update(java.util.Observable observable, java.lang.Object object) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DepartmentsObserver

        public DepartmentsObserver()
    • Method Detail

      • update

        public final void update(java.util.Observable observable,
                                 java.lang.Object object)
        Specified by:
        update in interface java.util.Observer
      • update

        protected abstract void update(java.util.Map<java.lang.String,Department> departments)
        Delivers the broadcast from LivechatDepartmentsPath 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 android.app.Activity#runOnUiThread(Runnable) or android.os.Looper#getMainLooper().

        Parameters:
        departments - and their ID available in the chat session