mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-27 05:10:12 +08:00
refactor(anyline): support anyline 43.0.0 (#4518)
This commit is contained in:
parent
4cd48b4d0e
commit
bb1164f4fc
@ -1,12 +1,8 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
|
||||
|
||||
export interface AnylineOptions {
|
||||
// Valid License Key
|
||||
licenseKey: string;
|
||||
|
||||
// Scanning options
|
||||
config: any;
|
||||
export interface AnylineConfig {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -38,14 +34,29 @@ export interface AnylineOptions {
|
||||
})
|
||||
@Injectable()
|
||||
export class Anyline extends AwesomeCordovaNativePlugin {
|
||||
@Cordova()
|
||||
checkLicense(licenseKey: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
initAnylineSDK(licenseKey: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
getSDKVersion(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Scan
|
||||
*
|
||||
* @param options {AnylineOptions} Scanning options
|
||||
* @param config {AnylineConfig} Scanning options
|
||||
* @returns {Promise<any>} Returns a promise that resolves when Code is captured
|
||||
*/
|
||||
@Cordova()
|
||||
scan(options: AnylineOptions): Promise<any> {
|
||||
scan(config: AnylineConfig): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user