EMTextPrimitive Protocol Reference

Conforms to EMPrimitive
Declared in EMTextPrimitive.h

Overview

A primitive for all primitives which accept text for connected DS mode.

  minimumInputLength required method

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

@property (assign, nonatomic, readonly) NSInteger minimumInputLength

Return Value

Minimum allowed input length.

Declared In

EMTextPrimitive.h

  maximumInputLength required method

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

@property (assign, nonatomic, readonly) NSInteger maximumInputLength

Return Value

Maximum allowed input length.

Declared In

EMTextPrimitive.h

  textFormat required method

Returns the data format. See EMPrimitiveTextFormat

@property (assign, nonatomic, readonly) EMPrimitiveTextFormat textFormat

Return Value

The data format for this primitive.

Declared In

EMTextPrimitive.h

– validateInputData: required method

Check if the given input data is valid for this primitive

- (BOOL)validateInputData:(id<EMSecureString>)data

Parameters

data

The input data to check.

Return Value

YES if data valid, NO otherwise.

Declared In

EMTextPrimitive.h

– assertInputData: required method

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

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

Parameters

data

The input data to check.

Exceptions

DsDataFormatException

If the data is not valid

Declared In

EMTextPrimitive.h