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 { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
|
||||
/**
|
||||
@@ -46,7 +46,9 @@ export class Keychain extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
get(key: string, touchIDMessage?: string): Promise<any> { return; }
|
||||
get(key: string, touchIDMessage?: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a value for a key
|
||||
@@ -58,7 +60,9 @@ export class Keychain extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
set(key: string, value: string | number | boolean, useTouchID?: boolean): Promise<any> { return; }
|
||||
set(key: string, value: string | number | boolean, useTouchID?: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a JSON value for a key
|
||||
@@ -69,7 +73,9 @@ export class Keychain extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getJson(key: string, touchIDMessage?: string): Promise<any> { return; }
|
||||
getJson(key: string, touchIDMessage?: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a JSON value for a key
|
||||
@@ -81,7 +87,9 @@ export class Keychain extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
setJson(key: string, obj: any, useTouchId?: boolean): Promise<any> { return; }
|
||||
setJson(key: string, obj: any, useTouchId?: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a value for a key
|
||||
@@ -91,6 +99,8 @@ export class Keychain extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
remove(key: string): Promise<any> { return; }
|
||||
remove(key: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user