SCSPrechatPickerOption

@interface SCSPrechatPickerOption : NSObject <NSCopying>

An SCSPrechatPickerOption specifies an option inside a pre-chat picker field that is displayed before a chat session is initiated.

This object must be added to the options array on an SCSPrechatPickerObject.

  • The label to display inside of the picker to the end user.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *pickerLabel;

    Swift

    var pickerLabel: String! { get }
  • The value to show to the agent in the Service Console.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *value;

    Swift

    var value: String! { get }
  • Instantiates an SCSPrechatPickerOption object for use with SCSPrechatPickerObject. This option will be displayed in the pre-chat picker as an option to select.

    Declaration

    Objective-C

    - (instancetype)initWithLabel:(NSString *)pickerLabel value:(NSString *)value;

    Swift

    init!(label pickerLabel: String!, value: String!)

    Parameters

    pickerLabel

    The label to display inside of the picker to the end user.

    value

    The value to show to the agent in the Service Console.

    Return Value

    The SCSPrechatPickerOption instance.

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init UNAVAILABLE_ATTRIBUTE;