-
public class SurfaceCameraPreview extends CameraPreview<SurfaceView, SurfaceHolder>
This is the fallback preview when hardware acceleration is off, and is the last resort. Currently does not support cropping, which means that com.otaliastudios.cameraview.CameraView is forced to be wrap_content. Do not use.
-
-
Constructor Summary
Constructors Constructor Description SurfaceCameraPreview(Context context, ViewGroup parent)
-
Method Summary
Modifier and Type Method Description ViewgetRootView()For testing purposes, should return the root view that was inflated into theparent during onCreateView. SurfaceHoldergetOutput()Returns the output surface object (for example a SurfaceHolderor a SurfaceTexture). Class<SurfaceHolder>getOutputClass()Returns the type of the output returned by getOutput. -
Methods inherited from class com.otaliastudios.cameraview.preview.CameraPreview
getOutput, getOutputClass, getSurfaceSize, getView, hasSurface, isCropping, onDestroy, onPause, onResume, setDrawRotation, setStreamSize, setSurfaceCallback, supportsCropping -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getRootView
@NonNull() View getRootView()
For testing purposes, should return the root view that was inflated into theparent during onCreateView.
-
getOutput
@NonNull() SurfaceHolder getOutput()
Returns the output surface object (for example a SurfaceHolderor a SurfaceTexture).
-
getOutputClass
@NonNull() Class<SurfaceHolder> getOutputClass()
Returns the type of the output returned by getOutput.
-
-
-
-