SCSPrechatTextInputObject
@interface SCSPrechatTextInputObject : SCSPrechatObject
An SCSPrechatTextInputObject specifies a pre-chat text input field that is
displayed before a chat session is initiated.
Use the SCSPrechatTextInputObject.required property to specify whether
this field must be filled in before initiating a session.
To send data directly to the agent without user input, see SCSPrechatObject.
This object must be added to your chat configuration using
SCSChatConfiguration.prechatFields.
-
Determines if the field must be filled before the pre-chat form can be submitted.
Declaration
Objective-C
@property (getter=isRequired, assign, readwrite, nonatomic) BOOL required;Swift
var isRequired: Bool { get set } -
Sets a maximum length for the text entered in the pre-chat field.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSUInteger maxLength;Swift
var maxLength: UInt { get set } -
The keyboard type to be used for the field.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIKeyboardType keyboardType;Swift
var keyboardType: UIKeyboardType { get set } -
The autocapitalization behaviour for the field.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UITextAutocapitalizationType autocapitalizationType;Swift
var autocapitalizationType: UITextAutocapitalizationType { get set } -
The autocorrection behaviour for the field.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UITextAutocorrectionType autocorrectionType;Swift
var autocorrectionType: UITextAutocorrectionType { get set }
-
Instantiates an
SCSPrechatTextInputObjectobject for use withSCSChatConfiguration.prechatFields. This object will be displayed in the pre-chat window for the user to fill out.Declaration
Objective-C
- (instancetype)initWithLabel:(NSString *)label;Swift
init!(label: String!)Parameters
labelThe identifying label to show to the agent in the Service Console.
Return Value
The
SCSPrechatTextInputObjectinstance. -
Undocumented
Declaration
Objective-C
- (instancetype)initWithLabel:(NSString *)label value:(NSString *)value;
Install in Dash
SCSPrechatTextInputObject Class Reference