From 94734f9f1bfe4cea56c26547fb1aec6e383dd034 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 13 Sep 2021 13:55:23 -0500 Subject: [PATCH] Removed brightness - unmaintained --- src/@ionic-native/plugins/brightness/index.ts | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 src/@ionic-native/plugins/brightness/index.ts diff --git a/src/@ionic-native/plugins/brightness/index.ts b/src/@ionic-native/plugins/brightness/index.ts deleted file mode 100644 index 36cf5720b..000000000 --- a/src/@ionic-native/plugins/brightness/index.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - -/** - * @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 - * ```typescript - * import { Brightness } from '@ionic-native/brightness/ngx'; - * - * constructor(private brightness: Brightness) { } - * - * ... - * - * let brightnessValue = 0.8; - * this.brightness.setBrightness(brightnessValue); - * ``` - * - */ -@Plugin({ - pluginName: 'Brightness', - plugin: 'cordova-plugin-brightness', - pluginRef: 'cordova.plugins.brightness', - repo: 'https://github.com/mgcrea/cordova-plugin-brightness', - platforms: ['Android', 'iOS'], -}) -@Injectable() -export class Brightness extends IonicNativePlugin { - /** - * Sets the brightness of the display. - * - * @param {number} 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() - 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() - getBrightness(): Promise { - return; - } - - /** - * Keeps the screen on. Prevents the device from setting the screen to sleep. - * @param {boolean} value - */ - @Cordova() - setKeepScreenOn(value: boolean): void {} -}