Brightness

Contents

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.

Installation

ionic cordova plugin add cordova-plugin-brightnessnpm install @ionic-native/brightness
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEYnpm install @ionic-enterprise/brightness

Supported Platforms

  • Android
  • iOS

Usage

import { Brightness } from '@ionic-native/brightness/ngx';

constructor(private brightness: Brightness) { }

...

let brightnessValue = 0.8;
this.brightness.setBrightness(brightnessValue);