cordova-plugin-app-review
Advanced tools
Comparing version 2.1.4 to 3.0.0
{ | ||
"name": "cordova-plugin-app-review", | ||
"version": "2.1.4", | ||
"version": "3.0.0", | ||
"description": "Cordova plugin to review app", | ||
@@ -5,0 +5,0 @@ "types": "./types/index.d.ts", |
@@ -25,3 +25,3 @@ # cordova-plugin-app-review | ||
- [Installation](#installation) | ||
- [Methods](#methods) | ||
- [Functions](#functions) | ||
@@ -47,3 +47,4 @@ <!-- /MarkdownTOC --> | ||
$ cordova plugin add cordova-plugin-app-review --variable ANDROID_PLAY_REVIEW_VERSION='2.0.+' | ||
$ cordova plugin add cordova-plugin-app-review \ | ||
--variable ANDROID_PLAY_REVIEW_VERSION='2.0.+' | ||
@@ -50,0 +51,0 @@ <!-- TypedocGenerated --> |
@@ -5,38 +5,37 @@ var PLUGIN_NAME = "AppReview"; | ||
module.exports = { | ||
requestReview: | ||
/** | ||
* Launches in-app review dialog. | ||
* | ||
* @returns {Promise<void>} Callback when operation is completed | ||
* | ||
* @example | ||
* cordova.plugins.AppReview.requestReview(); | ||
* // request dialog and provide fallback | ||
* cordova.plugins.AppReview.requestReview().catch(function() { | ||
* return cordova.plugins.AppReview.openStoreScreen(); | ||
* }); | ||
*/ | ||
function() { | ||
return new Promise(function(resolve, reject) { | ||
exec(resolve, reject, PLUGIN_NAME, "requestReview", []); | ||
}); | ||
}, | ||
openStoreScreen: | ||
/** | ||
* Launches App/Play store page with a review form. By default current app screen | ||
* is displayed but you can pass a package name string to show another app details. | ||
* | ||
* @param {string} [packageName] Package name to show instead of the current app. | ||
* @returns {Promise<void>} Callback when operation is completed | ||
* | ||
* @example | ||
* cordova.plugins.AppReview.openStoreScreen(); | ||
* cordova.plugins.AppReview.openStoreScreen("com.app.example"); | ||
*/ | ||
function(packageName) { | ||
return new Promise(function(resolve, reject) { | ||
exec(resolve, reject, PLUGIN_NAME, "openStoreScreen", [packageName || null]); | ||
}); | ||
}, | ||
} | ||
exports.requestReview = | ||
/** | ||
* Launches in-app review dialog. | ||
* | ||
* @returns {Promise<void>} Callback when operation is completed | ||
* | ||
* @example | ||
* cordova.plugins.AppReview.requestReview(); | ||
* // request dialog and provide fallback | ||
* cordova.plugins.AppReview.requestReview().catch(function() { | ||
* return cordova.plugins.AppReview.openStoreScreen(); | ||
* }); | ||
*/ | ||
function() { | ||
return new Promise(function(resolve, reject) { | ||
exec(resolve, reject, PLUGIN_NAME, "requestReview", []); | ||
}); | ||
}; | ||
exports.openStoreScreen = | ||
/** | ||
* Launches App/Play store page with a review form. By default current app screen | ||
* is displayed but you can pass a package name string to show another app details. | ||
* | ||
* @param {string} [packageName] Package name to show instead of the current app. | ||
* @returns {Promise<void>} Callback when operation is completed | ||
* | ||
* @example | ||
* cordova.plugins.AppReview.openStoreScreen(); | ||
* cordova.plugins.AppReview.openStoreScreen("com.app.example"); | ||
*/ | ||
function(packageName) { | ||
return new Promise(function(resolve, reject) { | ||
exec(resolve, reject, PLUGIN_NAME, "openStoreScreen", [packageName || null]); | ||
}); | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
102
14605
81