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 { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
export interface NativeTransitionOptions {
|
||||
direction?: string;
|
||||
@@ -42,7 +42,7 @@ export interface NativeTransitionOptions {
|
||||
* androiddelay: 150,
|
||||
* fixedPixelsTop: 0,
|
||||
* fixedPixelsBottom: 60
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* this.nativePageTransitions.slide(options)
|
||||
* .then(onSuccess)
|
||||
@@ -76,7 +76,9 @@ export class NativePageTransitions extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
slide(options: NativeTransitionOptions): Promise<any> { return; }
|
||||
slide(options: NativeTransitionOptions): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a flip animation
|
||||
@@ -84,7 +86,9 @@ export class NativePageTransitions extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
flip(options: NativeTransitionOptions): Promise<any> { return; }
|
||||
flip(options: NativeTransitionOptions): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a fade animation
|
||||
@@ -92,7 +96,9 @@ export class NativePageTransitions extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['iOS', 'Android'] })
|
||||
fade(options: NativeTransitionOptions): Promise<any> { return; }
|
||||
fade(options: NativeTransitionOptions): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@@ -101,8 +107,9 @@ export class NativePageTransitions extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['iOS', 'Android'] })
|
||||
drawer(options: NativeTransitionOptions): Promise<any> { return; }
|
||||
|
||||
drawer(options: NativeTransitionOptions): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@@ -111,20 +118,26 @@ export class NativePageTransitions extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova({ platforms: ['iOS'] })
|
||||
curl(options: NativeTransitionOptions): Promise<any> { return; }
|
||||
curl(options: NativeTransitionOptions): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute pending transition
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
executePendingTransition(): Promise<any> { return; }
|
||||
executePendingTransition(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancel pending transition
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
cancelPendingTransition(): Promise<any> { return; }
|
||||
cancelPendingTransition(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user