Skip to content

strangematter/cordova-plugin-visionkit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Objective-C 96.7%
  • JavaScript 3.3%