apache / apache/cordova-plugin-camera
Add ability to set timeout for camera to auto-close
- Dominant language
- Objective-C
- Stars
- 976
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Issue Type
- [ ] Bug Report
- [x] Feature Request
- [ ] Support Question
## Description
I would like to add timeout capability to auto-close the camera if the user hasn't captured an image in enough time. The use case for this is to cancel if you are in an application that has some kind of session timeout.
## Information
Add a parameter called timeoutMs. This will allow the user to set a timeout for the camera/gallery. Null/0/unpassed will do nothing.
### Command or Code
N/A
### Environment, Platform, Device
N/A
### Version information
N/A
## Checklist
- [x] I searched for already existing GitHub issues about this
- [ ] I updated all Cordova tooling to their most recent version
- [x] I included all the necessary information above
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by locating the camera and gallery APIs in this plugin, then trace their platform implementations; done means a timeoutMs parameter auto-closes the camera or gallery, while null, zero, or an omitted value leaves behavior unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript, nodejs, objective-c
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100