EMTextPrimitive
Objective-C
@protocol EMTextPrimitive <EMPrimitive>
Swift
protocol EMTextPrimitive : EMPrimitive
A primitive for all primitives which accept text for connected DS mode.
Since
2.1-
Returns the minimum allowed input characters for this primitive, -1 if there is no minimum or not applicable.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger minimumInputLength;Swift
var minimumInputLength: Int { get }Return Value
Minimum allowed input length.
-
Returns the maximum allowed input characters for this primitive, -1 if there is no maximum or not applicable.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger maximumInputLength;Swift
var maximumInputLength: Int { get }Return Value
Maximum allowed input length.
-
Returns the data format. See EMPrimitiveTextFormat
Declaration
Objective-C
@property (nonatomic, readonly) EMPrimitiveTextFormat textFormat;Swift
var textFormat: EMPrimitiveTextFormat { get }Return Value
The data format for this primitive.
-
Check if the given input data is valid for this primitive
See
[EMTextPrimitive assertInputData:]Declaration
Objective-C
- (BOOL)validateInputData:(id<EMSecureString>)data;Swift
func validateInputData(_ data: (any EMSecureString)!) -> BoolParameters
dataThe input data to check.
Return Value
YESif data valid,NOotherwise. -
Assert that the given input data is valid for this primitive.
See
[EMTextPrimitive validateInputData:]Declaration
Objective-C
- (void)assertInputData:(id<EMSecureString>)data;Swift
func assertInputData(_ data: (any EMSecureString)!)Parameters
dataThe input data to check. @exception DsDataFormatException If the data is not valid
EMTextPrimitive Protocol Reference