This commit is contained in:
Daniel Sogl 2018-03-23 22:06:20 +01:00 committed by GitHub
parent bf88f6ee51
commit 2ae2a683d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
export interface OpenALPROptions {
/** Country used for scanning the license plate */
@ -48,10 +48,8 @@ export interface OpenALPRResult {
repo: 'https://github.com/iMicknl/cordova-plugin-openalpr',
platforms: ['Android', 'iOS']
})
@Injectable()
export class OpenALPR extends IonicNativePlugin {
Country = {
AU: 'au',
BR: 'br',
@ -64,11 +62,13 @@ export class OpenALPR extends IonicNativePlugin {
};
/**
* This function does something
* @param imageData {any} Base64 encoding of the image data or the image file URI
* @param options {OpenALPROptions} Options to pass to the OpenALPR scanner
* @return {Promise<any>} Returns a promise that resolves when something happens
*/
* This function does something
* @param imageData {any} Base64 encoding of the image data or the image file URI
* @param options {OpenALPROptions} Options to pass to the OpenALPR scanner
* @return {Promise<any>} Returns a promise that resolves when something happens
*/
@Cordova()
scan(imageData: any, options?: OpenALPROptions): Promise<any> { return; }
scan(imageData: any, options?: OpenALPROptions): Promise<any> {
return;
}
}