EMInputPrimitive
Objective-C
@protocol EMInputPrimitive <EMPrimitive>
Swift
protocol EMInputPrimitive : EMPrimitive
A primitive for all primitives which accept input, either user entered or selected.
-
Returns the minimum allowed input characters for this input dialog, -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 input dialog, -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 input format. see EMPrimitiveInputFormat
Declaration
Objective-C
@property (nonatomic, readonly) EMPrimitiveInputFormat inputFormat;Swift
var inputFormat: EMPrimitiveInputFormat { get }Return Value
The input format for this input dialog primitive.
-
Check if the given input data is valid for this input dialog
See
assertInputData:Declaration
Objective-C
- (BOOL)validateInputData:(id<EMSecureString>)data error:(NSError **)error;Swift
func validateInputData(_ data: (any EMSecureString)!) throwsParameters
dataThe input data to check.
errorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in
NULL.Return Value
YESif data valid,NOotherwise. -
Assert that the given input data is valid for this input dialog.
See
validateInputData:error: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
EMInputPrimitive Protocol Reference