getDocumentScanner()

Use this factory function to get an instance of DocumentScanner.

Syntax 

1import { getDocumentScanner } from 'lightning/mobileCapabilities';
2getDocumentScanner(): DocumentScanner

Parameters 

None.

Returns 

An instance of DocumentScanner.

Usage 

There are no parameters or options when creating an instance. Use the instance to perform scanning operations.