docs(apprate): update example (#1455)

* docs(apprate): update example

* Update index.ts

* typo

* fixed preferences

* Update index.ts
This commit is contained in:
Daniel Sogl 2017-05-03 23:53:42 +02:00 committed by Ibby Hadeed
parent c600cd622e
commit bf88b78c63

View File

@ -110,12 +110,24 @@ export interface AppUrls {
* 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 = {
* ios: '<my_app_id>',
* this.appRate.promptForRating(true);
*
* // or, override the whole preferences object
* this.appRate.preferences = {
* usesUntilPrompt: 3,
* storeAppURL: {
* ios: '<app_id>',
* 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);
* ```