Brightness

Contents

The Brightness plugin let you control the display brightness of your device.

https://github.com/mgcrea/cordova-plugin-brightness

Ionic 屏幕亮度Brightness插件的安装(Installation)

ionic cordova plugin add cordova-plugin-brightness npm install @ionic-native/brightness

Ionic 屏幕亮度Brightness插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 屏幕亮度Brightness插件的用法(Usage)

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

constructor(private brightness: Brightness) { }

...

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