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)
Receive information about the Agent once they have accepted the chat session, and once an Agent Transfer has completed.
abstract void onChatMessageReceived(ChatMessage chatMessage)
Called when a chat message has been received from the Agent.
abstract void onTransferToButtonInitiated()
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)

Receive information about the Agent once they have accepted the chat session, and once an Agent Transfer has completed.

Parameters
agentInformation Information about the Agent
See Also

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 ()

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.