Improved brightness plugin documentation

This commit is contained in:
Aaron Czichon 2016-06-12 15:25:22 +02:00
parent 0e0150bd3a
commit 80e679f4dc

View File

@ -1,5 +1,21 @@
import {Plugin, Cordova} from './plugin';
/**
* @name Brightness
* @description
* The Brightness plugin let you control the display brightness of your device.
*
* Requires Cordova plugin: `cordova-plugin-brightness`. For more info, please see the [Brightness plugin docs](https://github.com/mgcrea/cordova-plugin-brightness).
*
* @usage
* ```ts
* import {Brightness} from 'ionic-native';
*
* let brightnessValue: number = 0.8;
* Brightness.setBrightness(brightnessValue);
* ```
*
*/
@Plugin({
plugin: 'cordova-plugin-brightness',
pluginRef: 'plugins.brightness',