public static class

Sos.SessionBuilder

extends Object
java.lang.Object
   ↳ com.salesforce.android.sos.api.Sos.SessionBuilder

Class Overview

SessionBuilder is used to aid in the construction of an SOS session. The session will begin with a call to start(Activity).

Summary

Public Methods
Sos.SessionBuilder configuration(SosConfiguration configuration)
Provide a SosConfiguration instance for testing and debug purposes.
void start(Activity activity)
Begin an SOS session with the parameters that have been provided to this builder.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Sos.SessionBuilder configuration (SosConfiguration configuration)

Provide a SosConfiguration instance for testing and debug purposes.

Parameters
configuration Testing and debug configuration for the session.
Returns
  • This SessionBuilder instance.

public void start (Activity activity)

Begin an SOS session with the parameters that have been provided to this builder.

Parameters
activity The Activity instance that is starting the session.
Throws
IllegalArgumentException if the supplied options or configuration are invalid.
Sos.SessionExistsException if a session already exists. (Sos.SessionExistsException)