UNPKG

775 BTypeScriptView Raw
1/**
2 * @beta
3 * @name Backlight
4 * @description
5 * This plugin adds turning on/off the device backlight.
6 *
7 * @usage
8 * ```
9 * import { Backlight } from 'ionic-native';
10 *
11 * // Turn backlight on
12 * Backlight.on().then(() => console.log('backlight on'));
13 *
14 * // Turn backlight off
15 * Backlight.off().then(() => console.log('backlight off'));
16 *
17 * ```
18 */
19export declare class Backlight {
20 /**
21 * This function turns backlight on
22 * @return {Promise<any>} Returns a promise that resolves when the backlight is on
23 */
24 static on(): Promise<any>;
25 /**
26 * This function turns backlight off
27 * @return {Promise<any>} Returns a promise that resolves when the backlight is off
28 */
29 static off(): Promise<any>;
30}