mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
Revert "chore(package): bump dependencies and lint rules"
This reverts commit 21ad4734fa.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
export interface NativeKeyboardOptions {
|
||||
|
||||
/**
|
||||
* A function invoked when the user submits his input. Receives the text as a single property. Make sure your page is UTF-8 encoded so Chinese and Emoji are rendered OK.
|
||||
*/
|
||||
@@ -126,6 +127,7 @@ export interface NativeKeyboardOptions {
|
||||
*
|
||||
*/
|
||||
rightButton: NativeKeyboardButton;
|
||||
|
||||
}
|
||||
|
||||
export interface NativeKeyboardButton {
|
||||
@@ -202,6 +204,7 @@ export interface NativeKeyboardUpdateMessengerOptions {
|
||||
})
|
||||
@Injectable()
|
||||
export class NativeKeyboard extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Show messenger
|
||||
* @param options {NativeKeyboardOptions}
|
||||
@@ -221,24 +224,19 @@ export class NativeKeyboard extends IonicNativePlugin {
|
||||
* @return {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
showMessengerKeyboard(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
showMessengerKeyboard(): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* Programmatically hide the keyboard (but not the messenger bar)
|
||||
*/
|
||||
@Cordova()
|
||||
hideMessengerKeyboard(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
hideMessengerKeyboard(): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* Manipulate the messenger while it's open. For instance if you want to update the text programmatically based on what the user typed.
|
||||
* @param options
|
||||
*/
|
||||
@Cordova()
|
||||
updateMessenger(options: NativeKeyboardUpdateMessengerOptions): Promise<any> {
|
||||
return;
|
||||
}
|
||||
updateMessenger(options: NativeKeyboardUpdateMessengerOptions): Promise<any> { return; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user