Class Overview
Information about a camera
Summary
Fields |
public
int |
facing |
The direction that the camera faces. |
public
int |
orientation |
The orientation of the camera image. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Constants
public
static
final
int
CAMERA_FACING_BACK
The facing of the camera is opposite to that of the screen.
Constant Value:
0
(0x00000000)
public
static
final
int
CAMERA_FACING_FRONT
The facing of the camera is the same as that of the screen.
Constant Value:
1
(0x00000001)
Fields
public
int
facing
The direction that the camera faces. It should be
CAMERA_FACING_BACK or CAMERA_FACING_FRONT.
public
int
orientation
The orientation of the camera image. The value is the angle that the
camera image needs to be rotated clockwise so it shows correctly on
the display in its natural orientation. It should be 0, 90, 180, or 270.
For example, suppose a device has a naturally tall screen. The
back-facing camera sensor is mounted in landscape. You are looking at
the screen. If the top side of the camera sensor is aligned with the
right edge of the screen in natural orientation, the value should be
90. If the top side of a front-facing camera sensor is aligned with
the right of the screen, the value should be 270.
Public Constructors
public
Camera.CameraInfo
()