Initialization
This page covers the description of the initialization process
The DocumentReader initialization works fully offline. It simply use license file, which you can get here: licensing.regulaforensics.com. You should add the regula.license
file to your project.
//Reading the license from raw resource file
InputStream licInput = getResources().openRawResource(R.raw.regula);
int available = licInput.available();
byte[] license = new byte[available];
//noinspection ResultOfMethodCallIgnored
licInput.read(license);
DocumentReader.Instance().initializeReader(MainActivity.this, license, new IDocumentReaderInitCompletion() {
@Override
public void onInitCompleted(boolean success, String error) {
if (success) {
//initialization successful
} else {
//Initialization was not successful
}
}
});
Last updated
Was this helpful?