setUploadSettings method

void setUploadSettings(
  1. UploadSettings uploadSettings
)

Sets the configuration for document upload flow. By enabling this option, the user will be prompted to upload the document file instead of capturing them with the device's camera. This option also includes quality checks.

Create a UploadSettings element with the desired settings.

By default this feature is deactivated.

Implementation

void setUploadSettings(UploadSettings uploadSettings) {
  this.uploadSettings = uploadSettings;
}