tauri-plugin-torchlight 1.0.11

Tauri v2 plugin to control the smartphone torch on Android and iOS: on/off, brightness, availability and state queries, and system torch change events.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

    <!--
      The plugin controls the torch through CameraManager.setTorchMode, which
      does not require the CAMERA permission. We only declare that a camera flash
      is used, but not required, so the app stays installable on devices without
      a flash unit (isAvailable() will report false there).
    -->
    <uses-feature
        android:name="android.hardware.camera.flash"
        android:required="false" />

</manifest>