Developer's Documentation for free mobile OCR SDK

Documentation Menu

setPredicateBlock method of the RTRDataFieldBuilder protocol

Sets the validation block which will be called for further verification of the data (e.g. calculating the checksum) after it has passed the regular expression check.

- (id<RTRDataFieldBuilder>)setPredicateBlock:(RTRFieldPredicateBlock)predicateBlock;

Parameters

predicateBlock

The user-implemented validation block of the type RTRFieldPredicateBlock. May be nil, which means the data will not be verified.

Return values

The method returns the same RTRDataFieldBuilder object on which it was called.