includeDocuments property
Document classes that will be explicitly accepted by this filter. Only documents belonging to the specified classes will be processed. All other documents will be rejected.
If this list is empty, no restrictions are applied, and documents will be accepted unless explicitly excluded by excludeDocuments.
Example usage:
final classFilter = ClassFilter();
classFilter.includeDocuments = [
DocumentFilter.country(Country.usa),
DocumentFilter.countryType(Country.croatia, DocumentType.id),
];
await blinkIdPlugin.performScan(sdkSettings, sessionSettings classFilter)
NOTE: from the example above, the class filter is set to only accept all documents from USA, and Croatian IDs. All other documents will be rejected.
Rules can be combined, for example, to set all three properties (Country Region, Type), two (e.g., Country and Type) or just one (e.g, Region).
See DocumentFilter for setting the combinations.
Implementation
List<DocumentFilter>? includeDocuments;