mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
chore(package): bump dependencies and lint rules
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';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
export interface SafariViewControllerOptions {
|
||||
@@ -64,13 +64,14 @@ export interface SafariViewControllerOptions {
|
||||
})
|
||||
@Injectable()
|
||||
export class SafariViewController extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Checks if SafariViewController is available
|
||||
* @returns {Promise<boolean>}
|
||||
*/
|
||||
@Cordova()
|
||||
isAvailable(): Promise<boolean> { return; }
|
||||
isAvailable(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows Safari View Controller
|
||||
@@ -82,27 +83,35 @@ export class SafariViewController extends IonicNativePlugin {
|
||||
errorIndex: 2,
|
||||
observable: true
|
||||
})
|
||||
show(options?: SafariViewControllerOptions): Observable<any> { return; }
|
||||
show(options?: SafariViewControllerOptions): Observable<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides Safari View Controller
|
||||
*/
|
||||
@Cordova()
|
||||
hide(): Promise<any> { return; }
|
||||
hide(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tries to connect to the Chrome's custom tabs service. you must call this method before calling any of the other methods listed below.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
connectToService(): Promise<any> { return; }
|
||||
connectToService(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this method whenever there's a chance the user will open an external url.
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
warmUp(): Promise<any> { return; }
|
||||
warmUp(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* For even better performance optimization, call this methods if there's more than a 50% chance the user will open a certain URL.
|
||||
@@ -110,6 +119,7 @@ export class SafariViewController extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
mayLaunchUrl(url: string): Promise<any> { return; }
|
||||
|
||||
mayLaunchUrl(url: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user