Skip to content
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

Specify Camera Direction for ImagePicker #116

Open
AbdullahJaved-dev opened this issue Dec 3, 2024 · 0 comments
Open

Specify Camera Direction for ImagePicker #116

AbdullahJaved-dev opened this issue Dec 3, 2024 · 0 comments

Comments

@AbdullahJaved-dev
Copy link

Front camera opens by default instead of the back camera when using the ImagePicker library on some devices, which is unsuitable for certain use cases, such as capturing a scene or object.

I want the ImagePicker library to provide a straightforward way to specify the camera facing direction (front or back) when opening the camera. For instance, an additional method or parameter like .setCameraFacing(CameraFacing.BACK) should be available to control this behavior. This will allow developers to explicitly define whether the front or rear camera should be used when launching the camera.

Code:

ImagePicker.with(requireActivity()).crop().maxResultSize(1080, 720)
                .provider(ImageProvider.BOTH).createIntentFromDialog {
                    launcher.launch(it)
                }

Device: Samsung S10+
Android Version: 12
Library-Version: 2.3.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant