Class ChatItemsObserver

  • All Implemented Interfaces:
    java.util.Observer


    public abstract class ChatItemsObserver
    extends ChatLogObserver
    Abstract definition of the observer that listens to broadcasts from LivechatChatLogPath observable
    • Constructor Detail

      • ChatItemsObserver

        public ChatItemsObserver(Context context)
    • Method Detail

      • update

        protected void update(java.util.LinkedHashMap<java.lang.String,ChatLog> chatLog)
        Description copied from class: ChatLogObserver
        Delivers the broadcast from LivechatAgentsPath 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().

        Specified by:
        update in class ChatLogObserver
        Parameters:
        chatLog - and their ID in the current chat session
      • updateChatItems

        protected abstract void updateChatItems(java.util.TreeMap<java.lang.String,RowItem> items)
        Delivers the broadcast from LivechatChatLogPath 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:
        items - chat items and their ID in the current chat session