Class TwoLineMrzFinderLayoutPreset
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class TwoLineMrzFinderLayoutPreset extends MrzFinderLayoutPreset implements Parcelable
A ready-to-use preset 2-line text to be displayed.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
_type
private String
mrzTextLine1
private String
mrzTextLine2
private final Double
adjustedFinderAspectRatio
-
Constructor Summary
Constructors Constructor Description TwoLineMrzFinderLayoutPreset(Map<String, Object> source)
TwoLineMrzFinderLayoutPreset(JSONObject json)
TwoLineMrzFinderLayoutPreset(String mrzTextLine1, String mrzTextLine2, Double adjustedFinderAspectRatio)
-
Method Summary
Modifier and Type Method Description String
get_type()
final String
getMrzTextLine1()
The first line of the MRZ text. final Unit
setMrzTextLine1(String mrzTextLine1)
The first line of the MRZ text. final String
getMrzTextLine2()
The second line of the MRZ text. final Unit
setMrzTextLine2(String mrzTextLine2)
The second line of the MRZ text. final Double
getAdjustedFinderAspectRatio()
Aspect ratio of the finder adjusted to the 2-line MRZ text. JSONObject
toJson(ToJsonConfiguration config)
TwoLineMrzFinderLayoutPreset
clone()
final static TwoLineMrzFinderLayoutPreset
default()
-
-
Constructor Detail
-
TwoLineMrzFinderLayoutPreset
TwoLineMrzFinderLayoutPreset(JSONObject json)
-
-
Method Detail
-
getMrzTextLine1
final String getMrzTextLine1()
The first line of the MRZ text.
Default is "I<USASMITH<<JACK<<<<<<<<<<<<<<<<<<<<"
-
setMrzTextLine1
final Unit setMrzTextLine1(String mrzTextLine1)
The first line of the MRZ text.
Default is "I<USASMITH<<JACK<<<<<<<<<<<<<<<<<<<<"
-
getMrzTextLine2
final String getMrzTextLine2()
The second line of the MRZ text.
Default is "2342353464USA9602300M2904076<<<<<<<2"
-
setMrzTextLine2
final Unit setMrzTextLine2(String mrzTextLine2)
The second line of the MRZ text.
Default is "2342353464USA9602300M2904076<<<<<<<2"
-
getAdjustedFinderAspectRatio
final Double getAdjustedFinderAspectRatio()
Aspect ratio of the finder adjusted to the 2-line MRZ text. Not editable. To override, please use 'aspectRatio' parameter in 'viewFinder' field in MRZ screen configuration.
Default is 5.390625
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
clone
TwoLineMrzFinderLayoutPreset clone()
-
default
final static TwoLineMrzFinderLayoutPreset default()
-
-
-
-