Class AgentsTypingObserver

  • All Implemented Interfaces:
    java.util.Observer


    public abstract class AgentsTypingObserver
    extends AgentsObserver
    Abstract definition of the observer that listens to typing broadcasts from LivechatAgentsPath observable
    • Constructor Detail

      • AgentsTypingObserver

        public AgentsTypingObserver(Context context)
    • Method Detail

      • update

        protected void update(java.util.Map<java.lang.String,Agent> agents)
        Description copied from class: AgentsObserver
        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 AgentsObserver
        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 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().

        Parameters:
        agentsTyping - and their ID in the current chat session