PreviewView
A FrameLayout containing a preview for the ICameraStreamer.
It handles the display, the aspect ratio and the scaling of the preview.
In the case, you are using it, do not call ICameraStreamer.startPreview or ICameraStreamer.stopPreview on application side. It will be handled by the PreviewView.
The Manifest.permission.CAMERA permission must be granted before using this view.
Types
A listener for the PreviewView.
Options for the position of the PreviewView within its container.
Options for scaling the PreviewView within its container.
Properties
Enables tap to focus.
Enables zoom on pinch gesture.
The Listener to listen to specific view events.
The position of the PreviewView within its container.
The scale mode of the PreviewView within its container.
Sets the ICameraStreamer to preview. Once set, the PreviewView will try to start the preview.
Functions
Starts the preview.
Stops the preview.