mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
docs(apprate): update example (#1455)
* docs(apprate): update example * Update index.ts * typo * fixed preferences * Update index.ts
This commit is contained in:
parent
c600cd622e
commit
bf88b78c63
@ -110,12 +110,24 @@ export interface AppUrls {
|
|||||||
* constructor(private appRate: AppRate) { }
|
* constructor(private appRate: AppRate) { }
|
||||||
*
|
*
|
||||||
* ...
|
* ...
|
||||||
|
* // set certain preferences
|
||||||
|
* this.appRate.preferences.storeAppURL = {
|
||||||
|
* ios: '<app_id>',
|
||||||
|
* android: 'market://details?id=<package_name>',
|
||||||
|
* windows: 'ms-windows-store://review/?ProductId=<store_id>'
|
||||||
|
* };
|
||||||
*
|
*
|
||||||
* this.appRate.preferences.storeAppURL = {
|
* this.appRate.promptForRating(true);
|
||||||
* ios: '<my_app_id>',
|
*
|
||||||
|
* // or, override the whole preferences object
|
||||||
|
* this.appRate.preferences = {
|
||||||
|
* usesUntilPrompt: 3,
|
||||||
|
* storeAppURL: {
|
||||||
|
* ios: '<app_id>',
|
||||||
* android: 'market://details?id=<package_name>',
|
* android: 'market://details?id=<package_name>',
|
||||||
* windows: 'ms-windows-store://review/?ProductId=<Store_ID>'
|
* windows: 'ms-windows-store://review/?ProductId=<store_id>'
|
||||||
* };
|
* }
|
||||||
|
* };
|
||||||
*
|
*
|
||||||
* this.appRate.promptForRating(false);
|
* this.appRate.promptForRating(false);
|
||||||
* ```
|
* ```
|
||||||
|
Loading…
Reference in New Issue
Block a user