ICameraManager

interface ICameraManager

Created by dodo on 17/11/14.

Inheritors

Types

Link copied to clipboard
@WorkerThread
interface CameraStartupCallback

Functions

Link copied to clipboard
@UiThread
abstract fun cameraSupportsTorch(): Boolean
Link copied to clipboard
abstract fun captureHighResFrame()
Link copied to clipboard
abstract fun dispose()
Link copied to clipboard
Link copied to clipboard
@Nullable
@UiThread
abstract fun getCurrentPreviewSize(): ImageSize
Link copied to clipboard
@Nullable
abstract fun getOpenedCameraType(): CameraType
Return the type of currently opened camera.
Link copied to clipboard
@NonNull
abstract fun getSurfaceWrapper(): SurfaceWrapper
Link copied to clipboard
@UiThread
@Nullable
abstract fun isAutofocusSupported(): Boolean
Returns true if opened camera supports autofocus.
Link copied to clipboard
@UiThread
abstract fun isCameraFocusing(): Boolean
Link copied to clipboard
@UiThread
abstract fun isCameraInFocus(): Boolean
Link copied to clipboard
abstract fun isDeviceShaking(): Boolean
Link copied to clipboard
abstract fun isPreviewActive(): Boolean
Link copied to clipboard
@UiThread
abstract fun performAutofocus()
Will perform an autofocus, if supported by camera.
Link copied to clipboard
@UiThread
abstract fun setMeteringAreas(@Nullable focusAreas: Array<Rect>)
Link copied to clipboard
abstract fun setShakeCallback(@NonNull shakeCallback: ShakeCallback)
Link copied to clipboard
@UiThread
abstract fun setTorchState(on: Boolean, @NonNull successCallback: SuccessCallback)
Enable/disable torch on camera.
Link copied to clipboard
@UiThread
abstract fun setZoomLevel(zoomLevel: Float)
Link copied to clipboard
@UiThread
abstract fun startPreview(@NonNull context: Context, @NonNull factorySettings: CameraSettings, @NonNull cameraStartupCallback: ICameraManager.CameraStartupCallback)
This method should be called on resuming the activity.
Link copied to clipboard
@UiThread
abstract fun stopPreview()
This method should be called on pausing the activity.