public interface

VisitorNameDataProvider

implements Serializable
com.salesforce.android.chat.core.VisitorNameDataProvider

Class Overview

Interface for using a PreChat field for the visitorName in ChatConfiguration.

To use a PreChat field value for the visitorName in ChatConfiguration, implement this interface and pass the instance to the ChatConfiguration using the visitorNameDataProvider(VisitorNameDataProvider) builder.

An implementation of this interface should query the ChatUserData list to find the value of a specified field name.

Summary

Public Methods
abstract String onPreChatDataRequested(List<ChatUserData> chatUserDataList)
Retrieves the PreChat field's value given the list of ChatUserData.

Public Methods

public abstract String onPreChatDataRequested (List<ChatUserData> chatUserDataList)

Retrieves the PreChat field's value given the list of ChatUserData.

Parameters
chatUserDataList A list of ChatUserData objects to query.
Returns
  • A string value representing a PreChat value of a specific field, or a default visitorName value.