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

Camera mode forcing. #4

Closed
jd-alexander opened this issue Apr 24, 2017 · 1 comment
Closed

Camera mode forcing. #4

jd-alexander opened this issue Apr 24, 2017 · 1 comment
Assignees

Comments

@jd-alexander
Copy link

Is there anyway I can use this library in a way where I am forcing it to only use the front facing camera?

@dmitry-zaitsev
Copy link
Member

Sure!

When you create the instance of Fotoapparat just specify the lensPosition parameter:

Fotoapparat
    .with(context)  
    .into(cameraView)
    .lensPosition(front())       // that
    .build();

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