diff --git a/src/@awesome-cordova-plugins/plugins/wonderpush/index.ts b/src/@awesome-cordova-plugins/plugins/wonderpush/index.ts index f2752a398a..a8c251c2d7 100644 --- a/src/@awesome-cordova-plugins/plugins/wonderpush/index.ts +++ b/src/@awesome-cordova-plugins/plugins/wonderpush/index.ts @@ -619,4 +619,118 @@ export class WonderPush extends AwesomeCordovaNativePlugin { } UserPreferences = new UserPreferencesMethods(this); + + /** + * Gets the user's country, either as previously stored, or as guessed from the system. + * @returns {Promise} + */ + @Cordova() + getCountry(): Promise { + return; + } + + /** + * Overrides the user's country. You should use an ISO 3166-1 alpha-2 country code. Defaults to getting the country code from the system default locale. + * Use `null` to disable the override. + * @param {string} country + * @returns {Promise} + */ + @Cordova() + setCountry(country: string): Promise { + return; + } + + /** + * Gets the user's currency, either as previously stored, or as guessed from the system. + * @returns {Promise} + */ + @Cordova() + getCurrency(): Promise { + return; + } + + /** + * Overrides the user's currency. You should use an ISO 4217 currency code. Defaults to getting the currency code from the system default locale. + * Use `null` to disable the override. + * @param {string} currency - + * @returns {Promise} + */ + @Cordova() + setCurrency(currency: string): Promise { + return; + } + + /** + * Gets the user's locale, either as previously stored, or as guessed from the system. + * @returns {Promise} + */ + @Cordova() + getLocale(): Promise { + return; + } + + /** + * Overrides the user's locale. + * You should use an `xx-XX` form of RFC 1766, composed of a lowercase ISO 639-1 language code, an underscore or a dash, and an uppercase ISO 3166-1 alpha-2 country code. + * Defaults to getting the locale code from the system default locale. + * Use `null` to disable the override. + * @param {string} locale - + * @returns {Promise} + */ + @Cordova() + setLocale(locale: string): Promise { + return; + } + + /** + * Gets the user's time zone, either as previously stored, or as guessed from the system. + * @returns {Promise} + */ + @Cordova() + getTimeZone(): Promise { + return; + } + + /** + * You should use an IANA time zone database codes, `Continent/Country` style preferably, abbreviations like `CET`, `PST`, `UTC`, which have the drawback of changing on daylight saving transitions. + * Defaults to getting the time zone code from the system default locale. + * Use `null` to disable the override. + * @param {string} timeZone - + * @returns {Promise} + */ + @Cordova() + setTimeZone(timeZone: string): Promise { + return; + } + + /** + * Enables the collection of the user's geolocation. + * @returns {Promise} + */ + @Cordova() + enableGeolocation(): Promise { + return; + } + + /** + * Disables the collection of the user's geolocation. + * @returns {Promise} + */ + @Cordova() + disableGeolocation(): Promise { + return; + } + + /** + * Overrides the user's geolocation. + * Using this method you can have the user's location be set to wherever you want. + * This may be useful to use a pre-recorded location. + * @param {number} latitude + * @param {number} longitude + * @returns {Promise} + */ + @Cordova() + setGeolocation(latitude: number, longitude: number): Promise { + return; + } }