Resource Base
Table of contents

CameraView

Create and Destroy Instances

Name Description
static createInstance() Creates a CameraView instance.
dispose() Releases all resources used by the CameraView instance.
disposed A readonly boolean value indicating whether the CameraView instance has been disposed.
getUIElement() Returns the HTML element that is used by the CameraView instance.
setUIElement() Specifies an HTML element for the CameraView instance to use as its UI element.

Drawing and UI

Name Description
createDrawingLayer() Creates a DrawingLayer object and put it in an array of DrawingLayers.
getDrawingLayer() Gets the DrawingLayer specified by its ID.
getAllDrawingLayers() Returns an array of all DrawingLayer objects.
deleteUserDefinedDrawingLayer() Deletes a DrawingLayer object specified by its ID.
clearUserDefinedDrawingLayers() Removes all user-defined DrawingLayers.
setTipConfig() Configures the tip feature.
getTipConfig() Returns the configuration of the tip.
setTipVisible() Sets whether to show the tip.
isTipVisible() Returns whether the tip is visible.
updateTipMessage() Updates the message shown in the tip.
getVisibleRegionOfVideo() Returns a Region object which specifies which part of the original video is shown in the video element.
getVideoElement Returns the video element used by the CameraView instance.
setScanRegionMaskStyle() Sets the drawing style for the scan-region mask.
getScanRegionMaskStyle() Returns the drawing style for the scan-region mask.
setScanRegionMaskVisible() Sets whether to show the scan-region mask.
isScanRegionMaskVisible() Returns whether the scan-region mask is visible.
setScanLaserVisible() Sets whether to show the laser that indicates the scanning is going on.
isScanLaserVisible() Returns whether the laser is visible.

createInstance

Creates a CameraView instance.

dispose

Releases all resources used by the CameraView instance.

disposed

A readonly boolean value indicating whether the CameraView instance has been disposed.

getUIElement

Returns the HTML element that is used by the CameraView instance.

setUIElement

Specifies an HTML element for the CameraView instance to use as its UI element.

createDrawingLayer

Creates a DrawingLayer object and put it in an array of DrawingLayers

getDrawingLayer

Gets the DrawingLayer specified by its ID

getAllDrawingLayers

Returns an array of all DrawingLayer objects

deleteUserDefinedDrawingLayer

Deletes a DrawingLayer object specified by its ID

clearUserDefinedDrawingLayers

Removes all user-defined DrawingLayers

setTipConfig

Configures the tip feature

getTipConfig

Returns the configuration of the tip

setTipVisible

Sets whether to show the tip

isTipVisible

Returns whether the tip is visible

updateTipMessage

Updates the message shown in the tip

getVisibleRegionOfVideo

Returns a Region object which specifies which part of the original video is shown in the video element

getVideoElement

Returns the video element used by the CameraView instance

setScanRegionMaskStyle

Sets the drawing style for the scan-region mask

getScanRegionMaskStyle

Returns the drawing style for the scan-region mask

setScanRegionMaskVisible

Sets whether to show the scan-region mask

isScanRegionMaskVisible

Returns whether the scan-region mask is visible

setScanLaserVisible

Sets whether to show the laser that indicates the scanning is going on

isScanLaserVisible

Returns whether the laser is visible

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 3.3.10

  • Latest version(4.0.2)
  • Version 4.x
    • Version 4.0.1
    • Version 4.0.0
  • Version 3.x
    • Version 3.3.10
    • Version 3.3.9
    • Version 3.3.8
    • Version 3.3.7
    • Version 3.3.6
    • Version 3.3.5
    • Version 3.3.4
    • Version 3.3.3
    • Version 3.3.2
    • Version 3.3.1
    • Version 3.3.0
    • Version 3.2.0
    • Version 3.1.0
    • Version 3.0.1
    • Version 3.0.0
  • Version 2.x
    • Version 2.3.5
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.3.0
    • Version 2.1.4
    • Version 2.1.3
    • Version 2.1.0
    • Version 2.0.0
Change +