diff --git a/src/plugins/brightness.ts b/src/plugins/brightness.ts index 2fc29d992..bf50fbbea 100644 --- a/src/plugins/brightness.ts +++ b/src/plugins/brightness.ts @@ -1,4 +1,4 @@ -import {Plugin, Cordova} from './plugin'; +import { Cordova, Plugin } from './plugin'; /** * @name Brightness @@ -17,34 +17,34 @@ import {Plugin, Cordova} from './plugin'; * */ @Plugin({ - plugin: 'cordova-plugin-brightness', - pluginRef: 'plugins.brightness', - repo: 'https://github.com/mgcrea/cordova-plugin-brightness', - platforms: ['Android', 'iOS'] + plugin: 'cordova-plugin-brightness', + pluginRef: 'plugins.brightness', + repo: 'https://github.com/mgcrea/cordova-plugin-brightness', + platforms: ['Android', 'iOS'] }) export class Brightness { - /** - * Sets the brightness of the display. - * - * @param {value} Floating number between 0 and 1 in which case 1 means 100% brightness and 0 means 0% brightness. - * @returns {Promise} Returns a Promise that resolves if setting brightness was successful. - */ - @Cordova() - static setBrightness(value: number): Promise { return; } + /** + * Sets the brightness of the display. + * + * @param {value} Floating number between 0 and 1 in which case 1 means 100% brightness and 0 means 0% brightness. + * @returns {Promise} Returns a Promise that resolves if setting brightness was successful. + */ + @Cordova() + static setBrightness(value: number): Promise { return; } - /** - * Reads the current brightness of the device display. - * - * @returns {Promise} Returns a Promise that resolves with the - * brightness value of the device display (floating number between 0 and 1). - */ - @Cordova() - static getBrightness(): Promise { return; } + /** + * Reads the current brightness of the device display. + * + * @returns {Promise} Returns a Promise that resolves with the + * brightness value of the device display (floating number between 0 and 1). + */ + @Cordova() + static getBrightness(): Promise { return; } - /** - * Keeps the screen on. Prevents the device from setting the screen to sleep. - */ - @Cordova() - static setKeepScreenOn(value: boolean): void { } + /** + * Keeps the screen on. Prevents the device from setting the screen to sleep. + */ + @Cordova() + static setKeepScreenOn(value: boolean): void { } }