Class ChatItemsObserver
- java.lang.Object
-
- com.zopim.android.sdk.data.observers.ChatLogObserver
-
- com.zopim.android.sdk.data.observers.ChatItemsObserver
-
- All Implemented Interfaces:
- java.util.Observer
public abstract class ChatItemsObserver extends ChatLogObserver
Abstract definition of the observer that listens to broadcasts fromLivechatChatLogPathobservable
-
-
Constructor Summary
Constructors Constructor and Description ChatItemsObserver(Context context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description protected voidupdate(java.util.LinkedHashMap<java.lang.String,ChatLog> chatLog)Delivers the broadcast fromLivechatAgentsPathobservableprotected abstract voidupdateChatItems(java.util.TreeMap<java.lang.String,RowItem> items)Delivers the broadcast fromLivechatChatLogPathobservable-
Methods inherited from class com.zopim.android.sdk.data.observers.ChatLogObserver
update
-
-
-
-
Method Detail
-
update
protected void update(java.util.LinkedHashMap<java.lang.String,ChatLog> chatLog)
Description copied from class:ChatLogObserverDelivers the broadcast fromLivechatAgentsPathobservableThis 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().- Specified by:
updatein classChatLogObserver- 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 fromLivechatChatLogPathobservableThis 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:
items- chat items and their ID in the current chat session
-
-