Merge commit 'a2f5acb48c8d197fad55276ffcee7eee5cf3065f'

# Conflicts:
#	src/@ionic-native/plugins/unvired-cordova-sdk/index.ts
This commit is contained in:
Srinidhi Anand Rao
2019-07-21 19:32:45 +05:30
11 changed files with 2815 additions and 927 deletions
@@ -0,0 +1,51 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
export interface AnylineOptions {
// Valid License Key
licenseKey: string;
// Scanning options
config: any;
}
/**
* @name Anyline
* @description
* Anyline provides an easy-to-use SDK for applications to enable Optical Character Recognition (OCR) on mobile devices.
*
* @usage
* ```typescript
* import { Anyline } from '@ionic-native/anyline/ngx';
*
*
* constructor(private anyline: Anyline) { }
*
* ...
*
*
* this.anyline.scan(options)
* .then((res: any) => console.log(res))
* .catch((error: any) => console.error(error));
*
* ```
*/
@Plugin({
pluginName: 'Anyline',
plugin: 'cordova-plugin-anyline',
pluginRef: 'Anyline',
repo: 'https://github.com/niconaso/anyline-ocr-cordova-module',
platforms: ['Android', 'iOS']
})
@Injectable()
export class Anyline extends IonicNativePlugin {
/**
* Scan
* @param options {AnylineOptions} Scanning options
* @return {Promise<any>} Returns a promise that resolves when Code is captured
*/
@Cordova()
scan(options: AnylineOptions): Promise<any> {
return;
}
}
@@ -27,6 +27,11 @@ export interface BarcodeScannerOptions {
*/
disableSuccessBeep?: boolean;
/**
* Disable or enable Autorotate. Supported on IOS only.
*/
shouldAutorotate?: boolean;
/**
* Prompt text. Supported on Android only.
*/
@@ -55,22 +60,22 @@ export interface BarcodeScannerOptions {
export interface BarcodeScanResult {
format:
| 'QR_CODE'
| 'DATA_MATRIX'
| 'UPC_E'
| 'UPC_A'
| 'EAN_8'
| 'EAN_13'
| 'CODE_128'
| 'CODE_39'
| 'CODE_93'
| 'CODABAR'
| 'ITF'
| 'RSS14'
| 'RSS_EXPANDED'
| 'PDF_417'
| 'AZTEC'
| 'MSI';
| 'QR_CODE'
| 'DATA_MATRIX'
| 'UPC_E'
| 'UPC_A'
| 'EAN_8'
| 'EAN_13'
| 'CODE_128'
| 'CODE_39'
| 'CODE_93'
| 'CODABAR'
| 'ITF'
| 'RSS14'
| 'RSS_EXPANDED'
| 'PDF_417'
| 'AZTEC'
| 'MSI';
cancelled: boolean;
text: string;
}
@@ -116,11 +121,11 @@ export class BarcodeScanner extends IonicNativePlugin {
PHONE_TYPE: string;
SMS_TYPE: string;
} = {
TEXT_TYPE: 'TEXT_TYPE',
EMAIL_TYPE: 'EMAIL_TYPE',
PHONE_TYPE: 'PHONE_TYPE',
SMS_TYPE: 'SMS_TYPE'
};
TEXT_TYPE: 'TEXT_TYPE',
EMAIL_TYPE: 'EMAIL_TYPE',
PHONE_TYPE: 'PHONE_TYPE',
SMS_TYPE: 'SMS_TYPE'
};
/**
* Open the barcode scanner.
+2 -2
View File
@@ -26,8 +26,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
pluginName: 'BioCatch',
plugin: 'cordova-plugin-biocatch',
pluginRef: 'BioCatch',
repo: 'https://bitbucket.org/whisprnd/biocatch-cordova-plugin',
platforms: ['iOS'],
repo: 'https://bitbucket.org/carlos_orellana/ionic-plugin',
platforms: ['iOS', 'Android'],
})
@Injectable()
export class BioCatch extends IonicNativePlugin {
@@ -33,6 +33,9 @@ export interface DeeplinkOptions {
* @description This plugin handles deeplinks on iOS and Android for both custom URL scheme links
* and Universal App Links.
*
* Please read the [ionic plugin deeplinks docs](https://github.com/ionic-team/ionic-plugin-deeplinks) for iOS and Android integration.
* You must add `universal-links` to your `config.xml` and set up Apple App Site Association (AASA) for iOS and Asset Links for Android.
*
* @usage
* ```typescript
* import { Deeplinks } from '@ionic-native/deeplinks/ngx';
@@ -23,6 +23,11 @@ export interface LineLoginProfile {
* Line Profile Name
*/
displayName: string;
/**
* Email
*/
email?: string;
}
export interface LineLoginAccessToken {
@@ -0,0 +1,72 @@
import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
export interface ThemeDetectionResponse {
// Boolean value about the status of the request
value: boolean;
// Message for readable usage
message: string;
}
/**
* @beta
* @name Theme Detection
* @description
* Cordova plugin to detect whether dark mode is enabled or not
*
* @usage
* ```typescript
* import { ThemeDetection } from '@ionic-native/theme-detection';
*
*
* constructor(private themeDetection: ThemeDetection) { }
*
* ...
*
* this.themeDetection.isAvailable()
* .then((res: ThemeDetectionResponse) => {
* if(res.value) {
* this.themeDetection.isDarkModeEnabled().then((res: ThemeDetectionResponse) => {
* console.log(res);
* })
* .catch((error: any) => console.error(error));
* }
* })
* .catch((error: any) => console.error(error));
*
* ```
*/
@Plugin({
pluginName: 'ThemeDetection',
plugin: 'cordova-plugin-theme-detection',
pluginRef: 'cordova.plugins.ThemeDetection',
repo: 'https://github.com/mariusbackes/cordova-plugin-theme-detection',
install: 'cordova plugin add cordova-plugin-theme-detection',
installVariables: [],
platforms: ['iOS']
})
@Injectable()
export class ThemeDetection extends IonicNativePlugin {
/**
*
* @return {Promise<ThemeDetectionResponse>}
* Returns a promise with an object that has a boolean property which gives information if the detection is available or not
*/
@Cordova()
isAvailable(): Promise<ThemeDetectionResponse> {
return;
}
/**
*
* @return {Promise<ThemeDetectionResponse>}
* Returns a promise with an object that has a boolean property which gives information if dark mode is enabled or not
*/
@Cordova()
isDarkModeEnabled(): Promise<ThemeDetectionResponse> {
return;
}
}