Builder

class Builder

This is the Builder pattern to help construct the preview configuration

Constructors

Link copied to clipboard
fun Builder()
Link copied to clipboard
fun Builder(previewConfig: PreviewConfig)

This constructor allows to create builder from existing PreviewConfig object

Functions

Link copied to clipboard

Generate the PreviewConfig from the builder

Link copied to clipboard

This API helps define the dimension and context info for the camera/preview. Default scan area is a full Size(100,100).

Link copied to clipboard

This would setup the camera resolution for the analyzer. Be aware that the camera module may not support exactly the same resolution, but set a best match

Link copied to clipboard
fun setLogoPosition(logoAnchor: SDKConstants.LogoAnchor, logoOffsetX: Int, logoOffsetY: Int): PreviewConfig.Builder

this API positions the logo using the LogoAnchor and the offset.

Link copied to clipboard

set which camera it is using

Link copied to clipboard
fun setSymbology(symbology: List<String>): PreviewConfig.Builder

Updates list of supported barcode types for preview scanner. Barcode types included in the list String will be supported and any of non-listed barcode types will not be returned in scan result.But whatever not in the EngineConstants will not be recognized.

Link copied to clipboard

This API updates list of a barcode Setting

Link copied to clipboard

Set zoom by ratio. If the ratio is smaller than minimum zoom ratio or larger than maximum available zoom ratio, the ratio will be revised to the available range.