Class AgentsTypingObserver
- java.lang.Object
-
- com.zopim.android.sdk.data.observers.AgentsObserver
-
- com.zopim.android.sdk.data.observers.AgentsTypingObserver
-
- All Implemented Interfaces:
- java.util.Observer
public abstract class AgentsTypingObserver extends AgentsObserver
Abstract definition of the observer that listens to typing broadcasts fromLivechatAgentsPath
observable
-
-
Constructor Summary
Constructors Constructor and Description AgentsTypingObserver(Context context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description protected void
update(java.util.Map<java.lang.String,Agent> agents)
Delivers the broadcast fromLivechatAgentsPath
observableprotected abstract void
updateTyping(java.util.Map<java.lang.String,AgentTyping> agentsTyping)
Delivers the broadcast fromLivechatAgentsPath
observable-
Methods inherited from class com.zopim.android.sdk.data.observers.AgentsObserver
update
-
-
-
-
Method Detail
-
update
protected void update(java.util.Map<java.lang.String,Agent> agents)
Description copied from class:AgentsObserver
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 classAgentsObserver
- Parameters:
agents
- and their ID in the current chat session
-
updateTyping
protected abstract void updateTyping(java.util.Map<java.lang.String,AgentTyping> agentsTyping)
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()
.- Parameters:
agentsTyping
- and their ID in the current chat session
-
-