nano-scan 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -152,6 +152,18 @@ zoomTo(zoom: number): void
152
152
  | --------- | -------- | ----------------- |
153
153
  | `zoom` | `number` | Zoom level to set |
154
154
 
155
+ #### toggleTorch(open)
156
+
157
+ Toggles the camera's torch (flashlight) on or off, if supported by the device.
158
+
159
+ ```ts
160
+ toggleTorch(bool: boolean): void
161
+ ```
162
+
163
+ | Parameter | Type | Description |
164
+ | --------- | -------- | ----------------- |
165
+ | `bool` | `boolean` | torch (flashlight) on or off |
166
+
155
167
  ## License
156
168
 
157
169
  [MIT](LICENSE)