https://github.com/rareloop/cordova-plugin-visionkit
https://github.com/rareloop/cordova-plugin-visionkit
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rareloop/cordova-plugin-visionkit
- Owner: Rareloop
- License: mit
- Created: 2020-04-14T10:12:15.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T11:45:48.000Z (about 5 years ago)
- Last Synced: 2024-03-26T00:04:43.369Z (over 1 year ago)
- Language: Objective-C
- Size: 7.81 KB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VisionKit plugin for Cordova
A wrapper around the iOS 13 VisionKit API's to provide document scanning on iOS.
**VisionKit requires iOS 13+**
## Installation
```
$ cordova plugin add cordova-plugin-visionkit
```## Usage
```
const success = (images) => {
images.forEach((path) => {
console.log(path);
});
};const failure = (error) => {
console.error(failure);
};window.VisionKit.scan(success, failure);
```_Note: If the user cancels the scanner you'll recieve a success callback with an empty array_