From 930a2c9d1d99da624dc431b2560320baab539206 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 13 Sep 2021 12:44:03 -0500 Subject: [PATCH] Removed backlight - unused --- src/@ionic-native/plugins/backlight/index.ts | 52 -------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/@ionic-native/plugins/backlight/index.ts diff --git a/src/@ionic-native/plugins/backlight/index.ts b/src/@ionic-native/plugins/backlight/index.ts deleted file mode 100644 index 304e6341..00000000 --- a/src/@ionic-native/plugins/backlight/index.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - -/** - * @beta - * @name Backlight - * @description - * This plugin adds turning on/off the device backlight. - * - * @usage - * ```typescript - * import { Backlight } from '@ionic-native/backlight/ngx'; - * - * constructor(private backlight: Backlight) { } - * - * ... - * - * // Turn backlight on - * this.backlight.on().then(() => console.log('backlight on')); - * - * // Turn backlight off - * this.backlight.off().then(() => console.log('backlight off')); - * - * ``` - */ -@Plugin({ - pluginName: 'Backlight', - plugin: 'cordova-plugin-backlight', - pluginRef: 'cordova.plugins.Backlight', - repo: 'https://github.com/mebibou/cordova-plugin-backlight', - platforms: ['Android'], -}) -@Injectable() -export class Backlight extends IonicNativePlugin { - /** - * This function turns backlight on - * @return {Promise} Returns a promise that resolves when the backlight is on - */ - @Cordova() - on(): Promise { - return; - } - - /** - * This function turns backlight off - * @return {Promise} Returns a promise that resolves when the backlight is off - */ - @Cordova() - off(): Promise { - return; - } -}