You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.
Our users will be scanning quite a few vertical mounted barcode stickers, and while testing our app out on location the other day I had to lock screen rotation of my Android phone at the OS level because I was unable to scan a barcode without the screen constantly rotating.
Is it possible to lock rotation of just the camera scanning? I would prefer to allow the user to use both landscape or portrait while using the app regularly.
For what it's worth I tried the following code on the screen that launched the scanning and while it locked that screen's orientation, it did not affect the camera itself:
Our users will be scanning quite a few vertical mounted barcode stickers, and while testing our app out on location the other day I had to lock screen rotation of my Android phone at the OS level because I was unable to scan a barcode without the screen constantly rotating.
Is it possible to lock rotation of just the camera scanning? I would prefer to allow the user to use both landscape or portrait while using the app regularly.
For what it's worth I tried the following code on the screen that launched the scanning and while it locked that screen's orientation, it did not affect the camera itself:
SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, DeviceOrientation.portraitDown, ]);
The text was updated successfully, but these errors were encountered: