Flashlight

Contents

This plugin allows you to switch the flashlight / torch of the device on and off.

https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin

Installation

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

Supported Platforms

  • Android
  • iOS
  • Windows Phone 8

Usage

import { Flashlight } from '@ionic-native/flashlight';

constructor(private flashlight: Flashlight) { }

...

this.flashlight.switchOn();