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 fromLivechatChatLogPath
observable
-
-
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 void
update(java.util.LinkedHashMap<java.lang.String,ChatLog> chatLog)
Delivers the broadcast fromLivechatAgentsPath
observableprotected abstract void
updateChatItems(java.util.TreeMap<java.lang.String,RowItem> items)
Delivers the broadcast fromLivechatChatLogPath
observable-
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:ChatLogObserver
Delivers the broadcast fromLivechatAgentsPath
observableThis 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:
update
in 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 fromLivechatChatLogPath
observableThis 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
-
-