public interface

AgentListener

com.salesforce.android.chat.core.AgentListener

Class Overview

Listener interface for retrieving agent information during a chat session.

Summary

Public Methods
abstract void onAgentIsTyping(boolean isAgentTyping)
Called when the agent has begun typing and when they have stopped typing.
abstract void onAgentJoined(AgentInformation agentInformation)
Called when an agent has accepted a chat session or an agent transfer has been completed.
abstract void onAgentJoinedConference(String agentName)
Called when a new agent has joined an existing chat session as a result of an agent group conference invitation.
abstract void onAgentLeftConference(String agentName)
Called when a new agent has left an existing group conferencing chat session.
abstract void onChatMessageReceived(ChatMessage chatMessage)
Called when a chat message has been received from the agent.
abstract void onTransferToButtonInitiated()
Called when an agent transfer has been initiated and the current agent has left the chat.

Public Methods

public abstract void onAgentIsTyping (boolean isAgentTyping)

Called when the agent has begun typing and when they have stopped typing.

Parameters
isAgentTyping True when the agent is typing, false when they have stopped.

public abstract void onAgentJoined (AgentInformation agentInformation)

Called when an agent has accepted a chat session or an agent transfer has been completed.

Parameters
agentInformation Information about the agent
See Also

public abstract void onAgentJoinedConference (String agentName)

Called when a new agent has joined an existing chat session as a result of an agent group conference invitation.

Parameters
agentName The agent's name who is joining the chat

public abstract void onAgentLeftConference (String agentName)

Called when a new agent has left an existing group conferencing chat session.

Parameters
agentName The agent's name who is leaving the chat

public abstract void onChatMessageReceived (ChatMessage chatMessage)

Called when a chat message has been received from the agent.

Parameters
chatMessage A chat message from the agent
See Also

public abstract void onTransferToButtonInitiated ()

Called when an agent transfer has been initiated and the current agent has left the chat. Please note that this is only called during a LiveAgent button transfer and not during a skill or User transfer.