ICameraView

interface ICameraView

Created by dodo on 17/11/14.

Inheritors

Types

Link copied to clipboard

Functions

Link copied to clipboard
@NonNull
abstract fun convertRectangleToActualRect(@NonNull rect: RectF): Rect
Converts rectangle in relative camera preview coordinates back to real view coordinates.
Link copied to clipboard
abstract fun dispose()
Link copied to clipboard
@NonNull
abstract fun getView(): View
Returns the actual view that will be laid out in UI.
Link copied to clipboard
abstract fun getVisibleHeight(): Int
Returns the actual height of the visible part of camera view.
Link copied to clipboard
abstract fun getVisibleWidth(): Int
Returns the actual width of the visible part of camera view.
Link copied to clipboard
abstract fun installCallback(@NonNull cameraManager: ICameraManager)
Installs required callbacks from camera manager.
Link copied to clipboard
abstract fun removeCallback()
Removes callback installed with installCallback
Link copied to clipboard
abstract fun setAspectMode(@NonNull aspectMode: CameraAspectMode)
Sets the aspect mode in which camera preview should be displayed.
Link copied to clipboard
abstract fun setCameraViewEventListener(@NonNull cameraTapListener: ICameraView.CameraViewEventListener)
Sets the listener that will receive taps in coordinates of camera frame and pinch events.
Link copied to clipboard
abstract fun setDeviceNaturalOrientationLandscape(deviceNaturalOrientationLandscape: Boolean)
Sets whether device's natural orientation is landscape.
Link copied to clipboard
abstract fun setHostActivityOrientation(orientation: Int)
Sets the orientation of host activity.
Link copied to clipboard
abstract fun setPreviewSize(width: Int, height: Int)
Sets the preview size obtained from camera.
Link copied to clipboard
abstract fun setRotation(rotationDegrees: Int)
Sets the camera preview rotation to be applied.