Backlight

Contents

This plugin adds turning on/off the device backlight.

https://github.com/mebibou/cordova-plugin-backlight

Ionic 背后照明Backlight插件的安装(Installation)

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

Ionic 背后照明Backlight插件支持的平台(Supported Platforms)

  • Android

Ionic 背后照明Backlight插件的用法(Usage)

import { Backlight } from '@ionic-native/backlight';

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'));