From 38c8d8b4dc04117866e1e0df5ec7c689e0e6f87f Mon Sep 17 00:00:00 2001 From: Damian Tarnawsky Date: Mon, 23 Aug 2021 07:49:21 -0700 Subject: [PATCH] Update example code and remove preferences object --- src/@ionic-native/plugins/app-rate/index.ts | 23 ++++++++------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/@ionic-native/plugins/app-rate/index.ts b/src/@ionic-native/plugins/app-rate/index.ts index 2838c2d0..2a80ac03 100644 --- a/src/@ionic-native/plugins/app-rate/index.ts +++ b/src/@ionic-native/plugins/app-rate/index.ts @@ -214,23 +214,25 @@ export interface AppUrls { * * ... * // set certain preferences - * this.appRate.preferences.storeAppURL = { - * ios: '', - * android: 'market://details?id=', - * windows: 'ms-windows-store://review/?ProductId=' - * } + * this.appRate.setPreferences({ + * storeAppURL: { + * ios: '', + * android: 'market://details?id=', + * windows: 'ms-windows-store://review/?ProductId=' + * } + * }); * * this.appRate.promptForRating(true); * * // or, override the whole preferences object - * this.appRate.preferences = { + * this.appRate.setPreferences({ * usesUntilPrompt: 3, * storeAppURL: { * ios: '', * android: 'market://details?id=', * windows: 'ms-windows-store://review/?ProductId=' * } - * } + * }); * * this.appRate.promptForRating(false); * ``` @@ -251,13 +253,6 @@ export interface AppUrls { }) @Injectable() export class AppRate extends IonicNativePlugin { - /** - * Configure various settings for the Rating View. - * See table below for options - */ - @CordovaProperty() - preferences: AppRatePreferences; - /** * Manager custom locales */