- Gesture - Enum in com.otaliastudios.cameraview
-
- GestureAction - Enum in com.otaliastudios.cameraview
-
- getAudio() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the current audio value.
- getCameraOptions() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns a
CameraOptions instance holding supported options for this camera
session.
- getCaptureSize() - Method in class com.otaliastudios.cameraview.CameraView
-
- getCropOutput() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns whether we should crop the picture output to match CameraView aspect ratio.
- getData() - Method in class com.otaliastudios.cameraview.Frame
-
Returns the frame data.
- getExposureCorrection() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns the current exposure correction value, typically 0
at start-up.
- getExposureCorrectionMaxValue() - Method in class com.otaliastudios.cameraview.CameraOptions
-
The maximum value of positive exposure correction, in EV stops.
- getExposureCorrectionMinValue() - Method in class com.otaliastudios.cameraview.CameraOptions
-
The minimum value of negative exposure correction, in EV stops.
- getExtraProperties() - Method in class com.otaliastudios.cameraview.CameraView
-
If present, returns a collection of extra properties from the current camera
session.
- getFacing() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the facing camera currently being used.
- getFlash() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the current flash mode.
- getFormat() - Method in class com.otaliastudios.cameraview.Frame
-
Returns the data format, in one of the
ImageFormat constants.
- getGestureAction(Gesture) - Method in class com.otaliastudios.cameraview.CameraView
-
Returns the action currently mapped to the given gesture.
- getGrid() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the current grid mode.
- getHdr() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the current hdr value.
- getHeight() - Method in class com.otaliastudios.cameraview.Size
-
- getHorizontalViewingAngle() - Method in class com.otaliastudios.cameraview.ExtraProperties
-
- getJpegQuality() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the JPEG compression quality for image outputs.
- getLocation() - Method in class com.otaliastudios.cameraview.CameraView
-
Retrieves the location previously applied with setLocation().
- getPictureSize() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns the size used for the capture,
or null if it hasn't been computed yet (for example if the surface is not ready).
- getPlaySounds() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the current sound effect behavior.
- getPreviewSize() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns the size used for the preview,
or null if it hasn't been computed (for example if the surface is not ready).
- getReason() - Method in exception com.otaliastudios.cameraview.CameraException
-
- getRotation() - Method in class com.otaliastudios.cameraview.Frame
-
Returns the clock-wise rotation that should be applied on the data
array, such that the resulting frame matches what the user is seeing
on screen.
- getSessionType() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the current session type.
- getSize() - Method in class com.otaliastudios.cameraview.Frame
-
Returns the frame size.
- getSnapshotSize() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns the size used for capturing snapshots.
- getSupportedControls(Class<T>) - Method in class com.otaliastudios.cameraview.CameraOptions
-
- getSupportedFacing() - Method in class com.otaliastudios.cameraview.CameraOptions
-
Set of supported facing values.
- getSupportedFlash() - Method in class com.otaliastudios.cameraview.CameraOptions
-
Set of supported flash values.
- getSupportedHdr() - Method in class com.otaliastudios.cameraview.CameraOptions
-
Set of supported hdr values.
- getSupportedPictureAspectRatios() - Method in class com.otaliastudios.cameraview.CameraOptions
-
Set of supported picture aspect ratios for the currently opened camera.
- getSupportedPictureSizes() - Method in class com.otaliastudios.cameraview.CameraOptions
-
Set of supported picture sizes for the currently opened camera.
- getSupportedWhiteBalance() - Method in class com.otaliastudios.cameraview.CameraOptions
-
Set of supported white balance values.
- getTime() - Method in class com.otaliastudios.cameraview.Frame
-
Returns the milliseconds epoch for this frame,
in the System.currentTimeMillis() reference.
- getVerticalViewingAngle() - Method in class com.otaliastudios.cameraview.ExtraProperties
-
- getVideoCodec() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the current encoder for video recordings.
- getVideoMaxDuration() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns the maximum duration in milliseconds for video recordings, or 0
if no limit was set.
- getVideoMaxSize() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns the maximum size in bytes for recorded video files, or 0
if no size was set.
- getVideoQuality() - Method in class com.otaliastudios.cameraview.CameraView
-
Gets the current video quality.
- getWhiteBalance() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns the current white balance behavior.
- getWidth() - Method in class com.otaliastudios.cameraview.Size
-
- getX() - Method in class com.otaliastudios.cameraview.AspectRatio
-
- getY() - Method in class com.otaliastudios.cameraview.AspectRatio
-
- getZoom() - Method in class com.otaliastudios.cameraview.CameraView
-
Returns the current zoom value, something between 0 and 1.
- Grid - Enum in com.otaliastudios.cameraview
-
Grid values can be used to draw grid lines over the camera preview.
- of(int, int) - Static method in class com.otaliastudios.cameraview.AspectRatio
-
Creates an aspect ratio with the given values.
- onAttachedToWindow() - Method in class com.otaliastudios.cameraview.CameraView
-
- onBitmapReady(Bitmap) - Method in interface com.otaliastudios.cameraview.CameraUtils.BitmapCallback
-
Notifies that the bitmap was succesfully decoded.
- onCameraClosed() - Method in class com.otaliastudios.cameraview.CameraListener
-
Notifies that the camera session was closed.
- onCameraError(CameraException) - Method in class com.otaliastudios.cameraview.CameraListener
-
Notifies about an error during the camera setup or configuration.
- onCameraOpened(CameraOptions) - Method in class com.otaliastudios.cameraview.CameraListener
-
Notifies that the camera was opened.
- onDetachedFromWindow() - Method in class com.otaliastudios.cameraview.CameraView
-
- onExposureCorrectionChanged(float, float[], PointF[]) - Method in class com.otaliastudios.cameraview.CameraListener
-
Noitifies that a finger gesture just caused the camera exposure correction
to be changed.
- onFocusEnd(boolean, PointF) - Method in class com.otaliastudios.cameraview.CameraListener
-
Notifies that a gesture focus event just ended, and the camera converged
to a new focus (and possibly exposure and white balance).
- onFocusStart(PointF) - Method in class com.otaliastudios.cameraview.CameraListener
-
Notifies that user interacted with the screen and started focus with a gesture,
and the autofocus is trying to focus around that area.
- onInterceptTouchEvent(MotionEvent) - Method in class com.otaliastudios.cameraview.CameraView
-
- onMeasure(int, int) - Method in class com.otaliastudios.cameraview.CameraView
-
Measuring is basically controlled by layout params width and height.
- onOrientationChanged(int) - Method in class com.otaliastudios.cameraview.CameraListener
-
Notifies that the device was tilted or the window offset changed.
- onPictureTaken(byte[]) - Method in class com.otaliastudios.cameraview.CameraListener
-
- onTouchEvent(MotionEvent) - Method in class com.otaliastudios.cameraview.CameraView
-
- onVideoTaken(File) - Method in class com.otaliastudios.cameraview.CameraListener
-
Notifies that a video capture has just ended.
- onZoomChanged(float, float[], PointF[]) - Method in class com.otaliastudios.cameraview.CameraListener
-
Noitifies that a finger gesture just caused the camera zoom
to be changed.
- or(SizeSelector...) - Static method in class com.otaliastudios.cameraview.SizeSelectors
-
- select(List<Size>) - Method in interface com.otaliastudios.cameraview.SizeSelector
-
Returns a list of acceptable sizes from the given input.
- SessionType - Enum in com.otaliastudios.cameraview
-
Type of the session to be opened or to move to.
- set(Control) - Method in class com.otaliastudios.cameraview.CameraView
-
Shorthand for the appropriate set* method.
- setAudio(Audio) - Method in class com.otaliastudios.cameraview.CameraView
-
Controls the audio mode.
- setCameraListener(CameraListener) - Method in class com.otaliastudios.cameraview.CameraView
-
- setCropOutput(boolean) - Method in class com.otaliastudios.cameraview.CameraView
-
Whether we should crop the picture output to match CameraView aspect ratio.
- setExposureCorrection(float) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets exposure adjustment, in EV stops.
- setFacing(Facing) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets which camera sensor should be used.
- setFlash(Flash) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets the flash mode.
- setGrid(Grid) - Method in class com.otaliastudios.cameraview.CameraView
-
Controls the grids to be drawn over the current layout.
- setHdr(Hdr) - Method in class com.otaliastudios.cameraview.CameraView
-
Controls the grids to be drawn over the current layout.
- setJpegQuality(int) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets the JPEG compression quality for image outputs.
- setLifecycleOwner(LifecycleOwner) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets the lifecycle owner for this view.
- setLocation(double, double) - Method in class com.otaliastudios.cameraview.CameraView
-
Set location coordinates to be found later in the jpeg EXIF header
- setLocation(Location) - Method in class com.otaliastudios.cameraview.CameraView
-
Set location values to be found later in the jpeg EXIF header
- setLogLevel(int) - Static method in class com.otaliastudios.cameraview.CameraLogger
-
Sets the log sLevel for logcat events.
- setPictureSize(SizeSelector) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets picture capture size.
- setPlaySounds(boolean) - Method in class com.otaliastudios.cameraview.CameraView
-
Controls whether CameraView should play sound effects on certain
events (picture taken, focus complete).
- setSessionType(SessionType) - Method in class com.otaliastudios.cameraview.CameraView
-
Set the current session type to either picture or video.
- setVideoCodec(VideoCodec) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets the encoder for video recordings.
- setVideoMaxDuration(int) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets the maximum duration in milliseconds for video recordings.
- setVideoMaxSize(long) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets the maximum size in bytes for recorded video files.
- setVideoQuality(VideoQuality) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets video recording quality.
- setWhiteBalance(WhiteBalance) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets desired white balance to current camera session.
- setZoom(float) - Method in class com.otaliastudios.cameraview.CameraView
-
Sets a zoom value.
- Size - Class in com.otaliastudios.cameraview
-
A simple class representing a size, with width and height values.
- SizeSelector - Interface in com.otaliastudios.cameraview
-
A size selector receives a list of
Sizes and returns another list with
sizes that are considered acceptable.
- SizeSelectors - Class in com.otaliastudios.cameraview
-
Static utilities to create, join and merge
SizeSelectors instances.
- SizeSelectors() - Constructor for class com.otaliastudios.cameraview.SizeSelectors
-
- SizeSelectors.Filter - Interface in com.otaliastudios.cameraview
-
A size constraint to easily filter out
sizes in a list.
- smallest() - Static method in class com.otaliastudios.cameraview.SizeSelectors
-
Returns a
SizeSelector that will order sizes from
the smallest to the biggest.
- start() - Method in class com.otaliastudios.cameraview.CameraView
-
Starts the camera preview, if not started already.
- startAutoFocus(float, float) - Method in class com.otaliastudios.cameraview.CameraView
-
Starts an autofocus process at the given coordinates, with respect
to the view width and height.
- startCapturingVideo() - Method in class com.otaliastudios.cameraview.CameraView
-
- startCapturingVideo(File) - Method in class com.otaliastudios.cameraview.CameraView
-
Starts recording a video.
- startCapturingVideo(File, long) - Method in class com.otaliastudios.cameraview.CameraView
-
- stop() - Method in class com.otaliastudios.cameraview.CameraView
-
Stops the current preview, if any was started.
- stopCapturingVideo() - Method in class com.otaliastudios.cameraview.CameraView
-
Stops capturing video, if there was a video record going on.
- supports(Control) - Method in class com.otaliastudios.cameraview.CameraOptions
-
Shorthand for getSupported*().contains(value).
- supports(GestureAction) - Method in class com.otaliastudios.cameraview.CameraOptions
-
Shorthand for other methods in this class,
e.g.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.Audio
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.Facing
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.Flash
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.Gesture
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.GestureAction
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.Grid
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.Hdr
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.SessionType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.VideoCodec
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.VideoQuality
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.otaliastudios.cameraview.WhiteBalance
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.otaliastudios.cameraview.Audio
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.Facing
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.Flash
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.Gesture
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.GestureAction
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.Grid
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.Hdr
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.SessionType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.VideoCodec
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.VideoQuality
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.otaliastudios.cameraview.WhiteBalance
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VideoCodec - Enum in com.otaliastudios.cameraview
-
Constants for selecting the encoder of video recordings.
- VideoQuality - Enum in com.otaliastudios.cameraview
-
Constants for selecting the quality of video recordings.