summaryrefslogtreecommitdiff
path: root/src/com/android/devcamera/CameraInterface.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/devcamera/CameraInterface.java')
-rw-r--r--src/com/android/devcamera/CameraInterface.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/devcamera/CameraInterface.java b/src/com/android/devcamera/CameraInterface.java
index e16c9e5..e6df5ce 100644
--- a/src/com/android/devcamera/CameraInterface.java
+++ b/src/com/android/devcamera/CameraInterface.java
@@ -33,6 +33,13 @@ public interface CameraInterface {
float[] getFieldOfView();
/**
+ * Get the camera sensor orientation relative to device native orientation
+ * Typically 90 or 270 for phones, 0 or 180 for tablets, though many tables are also
+ * portrait-native.
+ */
+ int getOrientation();
+
+ /**
* Open the camera. Call startPreview() to actually see something.
*/
void openCamera();