copy edits from @kgindervogel

This commit is contained in:
perry 2016-05-10 17:49:21 -05:00
parent 3cdf50bf3b
commit df1cee1fc6
5 changed files with 28 additions and 25 deletions

View File

@ -32,19 +32,21 @@ export class AppRate {
/** /**
* Rating dialog preferences * Rating dialog preferences
* *
* useLanguage {String} null - custom BCP 47 language tag * | Option | Type | Default | Description |
* displayAppName {String} '' - custom application title * |------------------------------|------------|---------|----------------------------------------------------------------------------------------|
* promptAgainForEachNewVersion {Boolean} true - show dialog again when application version will be updated * | useLanguage | `String` | null | custom BCP 47 language tag |
* usesUntilPrompt {Integer} 3 - count of runs of application before dialog will be displayed * | displayAppName | `String` | '' | custom application title |
* openStoreInApp {Boolean} false - leave app or no when application page opened in app store (now supported only for iOS) * | promptAgainForEachNewVersion | `Boolean` | true | show dialog again when application version will be updated |
* useCustomRateDialog {Boolean} false - use custom view for rate dialog * | usesUntilPrompt | `Integer` | 3 | count of runs of application before dialog will be displayed |
* callbacks.onButtonClicked {Function} null - call back function. called when user clicked on rate-dialog buttons * | openStoreInApp | `Boolean` | false | leave app or no when application page opened in app store (now supported only for iOS) |
* callbacks.onRateDialogShow {Function} null - call back function. called when rate-dialog showing * | useCustomRateDialog | `Boolean` | false | use custom view for rate dialog |
* storeAppURL.ios {String} null - application id in AppStore * | callbacks.onButtonClicked | `Function` | null | call back function. called when user clicked on rate-dialog buttons |
* storeAppURL.android {String} null - application URL in GooglePlay * | callbacks.onRateDialogShow | `Function` | null | call back function. called when rate-dialog showing |
* storeAppURL.blackberry {String} null - application URL in AppWorld * | storeAppURL.ios | `String` | null | application id in AppStore |
* storeAppURL.windows8 {String} null - application URL in WindowsStore * | storeAppURL.android | `String` | null | application URL in GooglePlay |
* customLocale {Object} null - custom locale object * | storeAppURL.blackberry | `String` | null | application URL in AppWorld |
* | storeAppURL.windows8 | `String` | null | application URL in WindowsStore |
* | customLocale | `Object` | null | custom locale object |
* @type {{}} * @type {{}}
*/ */
@CordovaProperty @CordovaProperty

View File

@ -3,6 +3,7 @@ import {Plugin, Cordova} from './plugin';
@Plugin({ @Plugin({
plugin: 'cordova.plugins.diagnostic', plugin: 'cordova.plugins.diagnostic',
pluginRef: 'cordova.plugins.diagnostic' pluginRef: 'cordova.plugins.diagnostic'
repo: 'https://github.com/floatinghotpot/cordova-plugin-admob'
}) })
export class Diagnostic { export class Diagnostic {
/** /**
@ -20,7 +21,7 @@ export class Diagnostic {
/** /**
* Checks if Wifi is connected/enabled. On iOS this returns true if the device is connected to a network by WiFi. On Android and Windows 10 Mobile this returns true if the WiFi setting is set to enabled. * Checks if Wifi is connected/enabled. On iOS this returns true if the device is connected to a network by WiFi. On Android and Windows 10 Mobile this returns true if the WiFi setting is set to enabled.
* On Android this requires permission <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> * On Android this requires permission. `<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />`
*/ */
@Cordova() @Cordova()
static isWifiEnabled() { static isWifiEnabled() {
@ -185,4 +186,4 @@ export class Diagnostic {
} }

View File

@ -118,7 +118,7 @@ export class File {
} }
/** /**
* Remove a directory at a given path * Remove a directory at a given path.
* *
* @param {string} path The path to the directory * @param {string} path The path to the directory
* @param {string} dirName The directory name * @param {string} dirName The directory name
@ -158,7 +158,7 @@ export class File {
} }
/** /**
* Move a directory to a given path * Move a directory to a given path.
* *
* @param {string} path The source path to the directory * @param {string} path The source path to the directory
* @param {string} dirName The source directory name * @param {string} dirName The source directory name
@ -252,7 +252,7 @@ export class File {
} }
/** /**
* List files and directory from a given path * List files and directory from a given path.
* *
* @param {string} path Base FileSystem. Please refer to the iOS and Android filesystems above * @param {string} path Base FileSystem. Please refer to the iOS and Android filesystems above
* @param {string} dirName Name of directory * @param {string} dirName Name of directory

View File

@ -23,8 +23,8 @@ export class Flashlight {
/** /**
* Checks if the flash light is available * Checks if the flashlight is available
* @returns {Promise<boolean>} Returns a promise that resolves with a boolean stating if the flash light is available. * @returns {Promise<boolean>} Returns a promise that resolves with a boolean stating if the flashlight is available.
*/ */
@Cordova() @Cordova()
static available(): Promise<boolean> { return; } static available(): Promise<boolean> { return; }
@ -37,7 +37,7 @@ export class Flashlight {
static switchOn(): Promise<boolean> { return; } static switchOn(): Promise<boolean> { return; }
/** /**
* Switches the flash light off * Switches the flashlight off
* @returns {Promise<boolean>} * @returns {Promise<boolean>}
*/ */
@Cordova() @Cordova()
@ -52,7 +52,7 @@ export class Flashlight {
/** /**
* Checks if the flash light is turned on. * Checks if the flashlight is turned on.
* Returns a boolean * Returns a boolean
*/ */
@Cordova({ @Cordova({
@ -60,4 +60,4 @@ export class Flashlight {
}) })
static isSwitchedOn(): boolean { return; } static isSwitchedOn(): boolean { return; }
} }

View File

@ -37,7 +37,7 @@ export class Keyboard {
static show(): void {} static show(): void {}
/** /**
* Close the keyboard if open * Close the keyboard if open.
*/ */
@Cordova({ @Cordova({
sync: true, sync: true,
@ -75,4 +75,4 @@ export class Keyboard {
}) })
static onKeyboardHide(): Observable<any> {return; } static onKeyboardHide(): Observable<any> {return; }
} }