How to access Flashlight in Ionic app

Author - Varun Chopra
5.03.2019
|
0 Comments
||

Steps to access Flashlight in Ionic app

Flashlight plugin allows you to turn the flashlight on/off of your mobile in Ionic application.
Installation:

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

Platform:

  • Android
  • iOS
  • Windows Phone 8

Use:

To turn off the flashlight use:
this.flashlight.switchOff();

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published. Required fields are marked *