mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
Merge in v5 code
This commit is contained in:
@@ -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 ZBarOptions {
|
||||
/**
|
||||
@@ -53,7 +53,7 @@ export interface ZBarOptions {
|
||||
* let options: ZBarOptions = {
|
||||
* flash: 'off',
|
||||
* drawSight: false
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* this.zbar.scan(options)
|
||||
* .then(result => {
|
||||
@@ -84,6 +84,8 @@ export class ZBar extends IonicNativePlugin {
|
||||
* @returns {Promise<any>} Returns a Promise that resolves with the scanned string, or rejects with an error.
|
||||
*/
|
||||
@Cordova()
|
||||
scan(options: ZBarOptions): Promise<any> { return; }
|
||||
scan(options: ZBarOptions): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user