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 { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
export interface OpenALPROptions { export interface OpenALPROptions {
/** Country used for scanning the license plate */ /** Country used for scanning the license plate */
@ -48,10 +48,8 @@ export interface OpenALPRResult {
repo: 'https://github.com/iMicknl/cordova-plugin-openalpr', repo: 'https://github.com/iMicknl/cordova-plugin-openalpr',
platforms: ['Android', 'iOS'] platforms: ['Android', 'iOS']
}) })
@Injectable() @Injectable()
export class OpenALPR extends IonicNativePlugin { export class OpenALPR extends IonicNativePlugin {
Country = { Country = {
AU: 'au', AU: 'au',
BR: 'br', BR: 'br',
@ -70,5 +68,7 @@ export class OpenALPR extends IonicNativePlugin {
* @return {Promise<any>} Returns a promise that resolves when something happens * @return {Promise<any>} Returns a promise that resolves when something happens
*/ */
@Cordova() @Cordova()
scan(imageData: any, options?: OpenALPROptions): Promise<any> { return; } scan(imageData: any, options?: OpenALPROptions): Promise<any> {
return;
}
} }