EMInputPrimitive Protocol Reference

Conforms to EMPrimitive
Declared in EMInputPrimitive.h

Overview

A primitive for all primitives which accept input, either user entered or selected.

  minimumInputLength required method

Returns the minimum allowed input characters for this input dialog, -1 if there is no minimum or not applicable.

@property (assign, nonatomic, readonly) NSInteger minimumInputLength

Return Value

Minimum allowed input length.

Declared In

EMInputPrimitive.h

  maximumInputLength required method

Returns the maximum allowed input characters for this input dialog, -1 if there is no maximum or not applicable.

@property (assign, nonatomic, readonly) NSInteger maximumInputLength

Return Value

Maximum allowed input length.

Declared In

EMInputPrimitive.h

  inputFormat required method

Returns the input format. see EMPrimitiveInputFormat

@property (assign, nonatomic, readonly) EMPrimitiveInputFormat inputFormat

Return Value

The input format for this input dialog primitive.

Declared In

EMInputPrimitive.h

– validateInputData:error: required method

Check if the given input data is valid for this input dialog

- (BOOL)validateInputData:(id<EMSecureString>)data error:(NSError **)error

Parameters

data

The input data to check.

error

If 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

YES if data valid, NO otherwise.

Declared In

EMInputPrimitive.h

– assertInputData: required method

Assert that the given input data is valid for this input dialog.

- (void)assertInputData:(id<EMSecureString>)data

Parameters

data

The input data to check.

Exceptions

DsDataFormatException

If the data is not valid

Declared In

EMInputPrimitive.h