Skip to content

Add Flashlight Control #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

superturboryan
Copy link
Owner

@superturboryan superturboryan commented Nov 24, 2024

Overview

  • Resolves 🔦 Add torch (flashlight) control #7
  • Add toggle on/off method with default parameter set to toggle current state
  • Call this method from anywhere, no permissions required 🤠
  • App must be in foreground for AVCaptureDevice access 🙄
  • Flashlight turns off if on when app is backgrounded

Testing

  • Verified with iPhone 13 mini - iOS 18.0 ✅

@superturboryan superturboryan added the enhancement New feature or request label Nov 24, 2024
@superturboryan superturboryan self-assigned this Nov 24, 2024
@superturboryan superturboryan linked an issue Nov 24, 2024 that may be closed by this pull request
@superturboryan superturboryan force-pushed the 7-add-flashlight-control branch from ab7e08e to 8217af4 Compare November 29, 2024 07:31
@superturboryan superturboryan added this to the 0.0.3 milestone Nov 30, 2024
@superturboryan superturboryan force-pushed the 7-add-flashlight-control branch 3 times, most recently from 8911fde to e9f1c29 Compare June 5, 2025 21:19
- Add toggle method on/off method with default parameter
@superturboryan superturboryan force-pushed the 7-add-flashlight-control branch from e9f1c29 to c865c70 Compare June 5, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🔦 Add torch (flashlight) control
1 participant