Struct defining the characteristics of a displayed field on the HMI.
@since SDL 1.0
The enumeration identifying the field.
See
SDLTextFieldNameRequired
@property (nonatomic, strong) SDLTextFieldName _Nonnull name;
var name: SDLTextFieldName { get set }
The set of characters that are supported by this text field. All text is sent in UTF-8 format, but not all systems may support all of the characters expressed by UTF-8. All systems will support at least ASCII, but they may support more, either the LATIN-1 character set, or the full UTF-8 character set.
@property (nonatomic, strong) SDLCharacterSet _Nonnull characterSet;
var characterSet: SDLCharacterSet { get set }
The number of characters in one row of this field.
Required, Integer 1 - 500
@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull width;
var width: NSNumber & SDLInt { get set }
The number of rows for this text field.
Required, Integer 1 - 8
@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull rows;
var rows: NSNumber & SDLInt { get set }
Convenience initializer for the TextField RPC struct
- (nonnull instancetype)initWithName:(nonnull SDLTextFieldName)name
characterSet:(nonnull SDLCharacterSet)characterSet
width:(NSUInteger)width
rows:(NSUInteger)rows;
init(name: SDLTextFieldName, characterSet: SDLCharacterSet, width: UInt, rows: UInt)
The name identifying this text field
The character set of this text field
The number of characters per row allowed in this text field
The number of rows allowed in this text field