About SDK and license
This page covers the ways of obtaining the info about a SDK and a license
SDK
To get the API version use:
Regula.DocumentReader.getAPIVersion((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
To get the Core version use:
Regula.DocumentReader.getCoreVersion((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
To get the Core mode use:
Regula.DocumentReader.getCoreMode((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
Allows you to get database id, e.g. KAZ:
Regula.DocumentReader.getDatabaseID((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
To get the database version use:
Regula.DocumentReader.getDatabaseVersion((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
Allows you to get the database export date:
Regula.DocumentReader.getDatabaseDate((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
To get the list of supported database documents use:
Regula.DocumentReader.getDatabaseDescription((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
Allows to get the number of supported database countries:
Regula.DocumentReader.getDatabaseCountriesNumber((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
Allows to get the number of supported database documents:
Regula.DocumentReader.getDatabaseDocumentsNumber((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
License
Allows to get an expiration date of the license:
Regula.DocumentReader.getLicenseExpiryDate((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
Allows to get a list of country identifiers which are defined for processing in the license. If the array is empty, there are no restrictions for processing:
Regula.DocumentReader.getLicenseCountryFilter((str) => {
console.log(str);
},
(error) => {
console.log(error);
});
Last updated
Was this helpful?