mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
25 lines
855 B
Markdown
25 lines
855 B
Markdown
|
<a style="float:right;font-size:12px;" href="http://github.com/danielsogl/awesome-cordova-plugins/edit/master/src/@awesome-cordova-plugins/plugins/flashlight/index.ts#L1">
|
||
|
Improve this doc
|
||
|
</a>
|
||
|
|
||
|
# Flashlight
|
||
|
|
||
|
```
|
||
|
$ ionic cordova plugin add cordova-plugin-flashlight
|
||
|
$ npm install @ionic-native/plugins/flashlight
|
||
|
```
|
||
|
|
||
|
## [Usage Documentation](https://ionicframework.com/docs/native/flashlight/)
|
||
|
|
||
|
Plugin Repo: [https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin](https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin)
|
||
|
|
||
|
This plugin allows you to switch the flashlight / torch of the device on and off.
|
||
|
|
||
|
Requires Cordova plugin: `cordova-plugin-flashlight`. For more info, please see the [Flashlight plugin docs](https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin).
|
||
|
|
||
|
## Supported platforms
|
||
|
|
||
|
- Android
|
||
|
- iOS
|
||
|
- Windows Phone 8
|