OSDN Git Service

Unhide camera api for set display orientation.
authorChih-Chung Chang <chihchung@google.com>
Wed, 27 Jan 2010 18:24:42 +0000 (10:24 -0800)
committerChih-Chung Chang <chihchung@google.com>
Thu, 28 Jan 2010 01:05:21 +0000 (17:05 -0800)
api/current.xml
core/java/android/hardware/Camera.java

index b65434a..a32c757 100644 (file)
  visibility="public"
 >
 </method>
+<method name="setDisplayOrientation"
+ return="void"
+ abstract="false"
+ native="true"
+ synchronized="false"
+ static="false"
+ final="true"
+ deprecated="not deprecated"
+ visibility="public"
+>
+<parameter name="degrees" type="int">
+</parameter>
+</method>
 <method name="setErrorCallback"
  return="void"
  abstract="false"
index 4c4455a..abb74cd 100644 (file)
@@ -552,8 +552,8 @@ public class Camera {
      * be called during preview.
      *
      * @param degrees the angle that the picture will be rotated clockwise.
-     *                Valid values are 0, 90, 180, and 270.
-     * @hide
+     *                Valid values are 0, 90, 180, and 270. The starting
+     *                position is 0 (landscape).
      */
     public native final void setDisplayOrientation(int degrees);