Skip to content

Specify Camera Direction for ImagePicker #116

Description

@AbdullahJaved-dev

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions