SCSChatConfiguration

@interface SCSChatConfiguration : NSObject <NSCopying>

A SCSChatConfiguration object contains configuration information for a Live Agent Chat session.

  • Instantiates an SCSChatConfiguration object for use with -[SCSChat startSessionWithConfiguration:].

    Declaration

    Objective-C

    - (instancetype)initWithLiveAgentPod:(NSString *)liveAgentPod
                                   orgId:(NSString *)orgId
                            deploymentId:(NSString *)deploymentId
                                buttonId:(NSString *)buttonId;

    Swift

    init!(liveAgentPod: String!, orgId: String!, deploymentId: String!, buttonId: String!)

    Parameters

    liveAgentPod

    The hostname for the LiveAgent endpoints that your organization has been assigned.

    orgId

    The Salesforce 15 character Organization ID.

    deploymentId

    The unique ID for the deployment that this client will be configured to use.

    buttonId

    The unique ID for the chat configuration that this client will use.

    Return Value

    The SCSChatConfiguration instance.

  • An array of SCSPrechatObject objects defining the custom information this session will provide.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic)
        NSArray<SCSPrechatObject *> *prechatFields;

    Swift

    var prechatFields: [SCSPrechatObject]! { get set }
  • An array of SCSPrechatEntity objects defining the mappings of custom information from this session to salesforce objects.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic)
        NSArray<SCSPrechatEntity *> *prechatEntities;

    Swift

    var prechatEntities: [SCSPrechatEntity]! { get set }
  • Name of the chat visitor for Service Cloud agent & console to consume.

    Defaults to Visitor.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *visitorName;

    Swift

    var visitorName: String! { get set }
  • Determines whether the framework receives and displays updates about the session queue position.

    Defaults to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL queueUpdatesEnabled;

    Swift

    var queueUpdatesEnabled: Bool { get set }
  • Determines whether session logs are sent for collection. Logs sent remotely do not collect personal information. Unique IDs are created for tying logs to sessions, and those IDs cannot be correlated back to specific users.

    Default to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL remoteLoggingEnabled;

    Swift

    var remoteLoggingEnabled: Bool { get set }
  • Determines whether the session will use UIApplication’s beginBackgroundTask API to allow for extended background execution to allow for reduced session timeouts.

    Default to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL allowBackgroundExecution;

    Swift

    var allowBackgroundExecution: Bool { get set }
  • Determines whether the session will use UserNotifications to post local notifications on selected chat events. Requires allowBackgroundExecution to be set to YES.

    Default to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL allowBackgroundNotifications;

    Swift

    var allowBackgroundNotifications: Bool { get set }
  • Defines whether the user is presented with the ability to minimize the user interface.

    Defaults to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL allowMinimization;

    Swift

    var allowMinimization: Bool { get set }
  • Defines whether the user interface is presented in minimized mode following prechat submission.

    Defaults to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL defaultToMinimized;

    Swift

    var defaultToMinimized: Bool { get set }
  • Defines whether the user is shown URL previews when the agent types a URL in the chat feed.

    Defaults to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL allowURLPreview;

    Swift

    var allowURLPreview: Bool { get set }