public final class IbanParser extends Parser
Modifier and Type | Class and Description |
---|---|
static class |
IbanParser.Result |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
CLASS_NAME
Constructor and Description |
---|
IbanParser() |
Modifier and Type | Method and Description |
---|---|
void |
clearResult()
Clears parser result.
|
IbanParser |
clone()
Create a copy of the entity.
|
void |
consumeResult(IbanParser.Result resultToConsume)
Consumes given result.
|
void |
consumeResultFrom(Entity other)
Consume result from other entity.
|
protected void |
deserializeNativeSettings(byte[] serializedSettings) |
java.lang.String[] |
getCountryCodeWhitelist()
Set of allowed country codes.
|
protected byte[] |
serializeNativeSettings() |
void |
setAlwaysReturnPrefix(boolean alwaysReturnPrefix)
Should prefix (country code) always be returned.
|
void |
setCountryCodeWhitelist(java.lang.String[] countryCodeWhitelist)
Set of allowed country codes.
|
boolean |
shouldAlwaysReturnPrefix()
Should prefix (country code) always be returned.
|
protected void |
terminateNative(long nativeContext) |
getPriority, isRequired, setRequired
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel, writeToParcel
public void setCountryCodeWhitelist(@Nullable java.lang.String[] countryCodeWhitelist)
null
, all valid IBANs will
be returned.
By default, this is set to '[]'@Nullable public java.lang.String[] getCountryCodeWhitelist()
null
, all valid IBANs will
be returned.
By default, this is set to '[]'public void setAlwaysReturnPrefix(boolean alwaysReturnPrefix)
public boolean shouldAlwaysReturnPrefix()
protected void terminateNative(long nativeContext)
terminateNative
in class Entity
@Nullable protected byte[] serializeNativeSettings()
serializeNativeSettings
in class Entity
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings)
deserializeNativeSettings
in class Entity
public IbanParser clone()
Entity
RecognizerRunnerView
or RecognizerRunner
with the updated entity hierarchy.public void consumeResultFrom(@NonNull Entity other)
Entity
com.microblink.blinkinput.entities.recognizers.RecognizerBundle#loadFromIntent(Intent)
and similar methods to replace the result content of the saved entities with results that
have arrived over Intent
consumeResultFrom
in class Entity
other
- Entity from which result should be consumed.public void consumeResult(@NonNull IbanParser.Result resultToConsume)
Parser
consumeResult
in class Parser
resultToConsume
- Result that should be consumed.public void clearResult()
Parser
clearResult
in class Parser