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

Using the Front Camera and toggle cameras #120

Closed
Ljusnan opened this issue Aug 5, 2014 · 2 comments
Closed

Using the Front Camera and toggle cameras #120

Ljusnan opened this issue Aug 5, 2014 · 2 comments

Comments

@Ljusnan
Copy link

Ljusnan commented Aug 5, 2014

Hi,

I use ZXing.Net with Xamarin on Android and it works pretty good, thank you!

Currently I want to enable users to use the Front Camera and I tried this:

var result = await scanner.Scan(new MobileBarcodeScanningOptions(){UseFrontCameraIfAvailable=true});

But unfortunately this does not work on my test device (Samsung Galaxy S2). I still cannot use the front camera. How to invoke this correctly?

My second question is: Will there be an option to toggle Front and Back Camera? Like I can do now with the flashlight scanner.ToggleTorch()

@Redth Redth closed this as completed in cb518b1 Aug 5, 2014
@Redth
Copy link
Owner

Redth commented Aug 5, 2014

To answer your question about a toggle, right now, this is a bit of a tricky thing to do since on some devices it will require completely restarting the camera, so for now, unfortunately, no toggle :(

I've started a new issue #122 as an enhancement request for this feature. Thanks.

@Ljusnan
Copy link
Author

Ljusnan commented Aug 6, 2014

Okay, thanks a lot!

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

2 participants