docs(brightness): add missing doc

This commit is contained in:
Daniel 2018-04-08 19:12:38 +02:00
parent 502203936c
commit e095eecf5b

View File

@ -33,7 +33,7 @@ export class Brightness extends IonicNativePlugin {
/** /**
* Sets the brightness of the display. * Sets the brightness of the display.
* *
* @param value {number} Floating number between 0 and 1 in which case 1 means 100% brightness and 0 means 0% brightness. * @param {number} value Floating number between 0 and 1 in which case 1 means 100% brightness and 0 means 0% brightness.
* @returns {Promise<any>} Returns a Promise that resolves if setting brightness was successful. * @returns {Promise<any>} Returns a Promise that resolves if setting brightness was successful.
*/ */
@Cordova() @Cordova()
@ -54,6 +54,7 @@ export class Brightness extends IonicNativePlugin {
/** /**
* Keeps the screen on. Prevents the device from setting the screen to sleep. * Keeps the screen on. Prevents the device from setting the screen to sleep.
* @param {boolean} value
*/ */
@Cordova() @Cordova()
setKeepScreenOn(value: boolean): void {} setKeepScreenOn(value: boolean): void {}