runAutoUpdate method
Future<SuccessOrError>
runAutoUpdate(
- String databaseID,
- DocumentReaderPrepareCompletion prepareCompletion
Allows you to download a database from the Regula server. Each new update of the database will be downloaded.
databaseID
- identifier of the database.
prepareCompletion
- callback that returns downloading progress.
Check out SuccessOrError documentation for handling return type.
Requires android.permission.INTERNET
android permission.
Implementation
Future<SuccessOrError> runAutoUpdate(
String databaseID,
DocumentReaderPrepareCompletion prepareCompletion,
) async {
_setDocumentReaderPrepareCompletion(prepareCompletion);
var response = await _bridge.invokeMethod("runAutoUpdate", [databaseID]);
return _successOrErrorFromJson(response);
}