Skip to content

feat(barcode-scanner): add torch toggle - #3551

Open
bizkda wants to merge 1 commit into
tauri-apps:v2from
bizkda:fix/barcode-scanner-torch
Open

feat(barcode-scanner): add torch toggle#3551
bizkda wants to merge 1 commit into
tauri-apps:v2from
bizkda:fix/barcode-scanner-torch

Conversation

@bizkda

@bizkda bizkda commented Aug 24, 2026

Copy link
Copy Markdown

Adds a toggleTorch() API to the barcode scanner plugin.

  • Adds the toggle_torch Tauri command.
  • Adds the JS toggleTorch(enabled) API.
  • Adds Android argument parsing with @InvokeArg.
  • Adds the corresponding permission metadata.
  • Fixes Android torch argument deserialization.

Testing

  • pnpm run --filter @tauri-apps/plugin-barcode-scanner build
  • npx tsc --noEmit
  • Manually tested torch toggle on Android.

@bizkda
bizkda requested a review from a team as a code owner August 24, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants