Camera
An instance of quick access to the camera is provided, an interface for previewing data is obtained, method of managing the life cycle of the camera is encapsulated, and the monitoring of the camera.
Description of functional types
CameraManager
Description of Member Function
CameraManager addPreviewCallbackWithBuffer(PreviewCallback callback)
CameraManager removePreviewCallbackWithBuffer(PreviewCallback callback)
CameraManager getInstance(int cameraId)
CameraManager setDisplayOrientation(int degree)
CameraManager setPreviewTexture(SurfaceTexture texture)
List getSupportedPreviewSizes()
void initParameters(int width, int height, int degree, SurfaceTexture surfaceTexture)
void openCamera(Context context)
void releaseCamera()
void startPreview()
void stopPreview()
Description of Entities
最終更新
役に立ちましたか?