java.lang.Object | |
↳ | com.salesforce.android.sos.api.SosOptions |
Encapsulates the information required to start a session. An instance of this class is passed to the SOS API when starting a session, and includes the information needed to route the session to a service agent.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | INTENT_TAG | The tag used to store the options in the Intent when starting the SosService. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SosOptions(Map<String, Object> customData, String liveAgentPod, String orgId, String deploymentId)
Construct a version of the SosOptions using custom field data.
| |||||||||||
SosOptions(String liveAgentPod, String orgId, String deploymentId)
Construct an SosOptions instance for starting an SOS session.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Map<String, Object> |
getCustomData()
Retrieve the custom data for the session.
| ||||||||||
String |
getDeploymentId()
Retrieve the deployment identifier.
| ||||||||||
String |
getLiveAgentPod()
Retrieve the LiveAgent pod hostname.
| ||||||||||
String |
getOrgId()
Retrieve the Salesforce organization ID.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The tag used to store the options in the Intent when starting the SosService.
Construct a version of the SosOptions using custom field data.
customData | The custom data used to populate fields on the SosSession object. The keys
and values in this map must reflect the custom fields added to the SosSession
object within your Salesforce organization. The keys in this map should
reference the field's API name, and the value stored at that key should be
of the same type as the custom field in Salesforce.
The following table shows the Java types that should be used for various custom field types in Salesforce.
|
||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
liveAgentPod | The hostname of the LiveAgent API endpoint assigned to you organization. | ||||||||||||||||||||||||||
orgId | You Salesforce fifteen character UID for your Salesforce organization. | ||||||||||||||||||||||||||
deploymentId | The deployment identifier used to route the session. This identifier is used to route the session to a specific set of agents. New deployments can be create in Salesforce on the Setup tab under SOSDeployments. |
Construct an SosOptions instance for starting an SOS session.
liveAgentPod | The hostname of the LiveAgent API endpoint assigned to you organization. |
---|---|
orgId | You Salesforce fifteen character UID for your Salesforce organization. |
deploymentId | The deployment identifier used to route the session. This identifier is used to route the session to a specific set of agents. New deployments can be create in Salesforce on the Setup tab under SOSDeployments. |
IllegalArgumentException | If any of the supplied options are determined to be invalid. |
---|
Retrieve the custom data for the session.
Retrieve the deployment identifier.
Retrieve the LiveAgent pod hostname.
Retrieve the Salesforce organization ID.