mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +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';
|
||||
|
||||
/**
|
||||
* @name Launch Review
|
||||
@@ -45,7 +45,9 @@ export class LaunchReview extends IonicNativePlugin {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' })
|
||||
launch(appId?: string): Promise<void> { return; }
|
||||
launch(appId?: string): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Invokes the native in-app rating dialog which allows a user to rate your app without needing to open the App Store.
|
||||
@@ -57,7 +59,9 @@ export class LaunchReview extends IonicNativePlugin {
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
@Cordova({ platforms: ['iOS'] })
|
||||
rating(): Promise<string> { return; }
|
||||
rating(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the current platform/version supports in-app ratings dialog, i.e. calling LaunchReview.rating().
|
||||
@@ -65,6 +69,8 @@ export class LaunchReview extends IonicNativePlugin {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
@Cordova({ platforms: ['Android', 'iOS'], sync: true })
|
||||
isRatingSupported(): boolean { return; }
|
||||
isRatingSupported(): boolean {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user