barKoder SDK for NativeScript API Reference

This page will explain all available methods and configuration settings of the barKoder Barcode Scanner SDK for NativeScript.

Methods #

startCamera #

Starts the camera for barcode scanning.

Syntax:

                startCamera() : void
            

startScanning #

Starts scanning for barcodes.

Parameters:

BarkoderResultCallback: The callback that will handle barcode scanning events.

Syntax:

                startScanning(BarkoderResultCallback : BarkoderConstants.BarkoderResultCallback) : void
            

stopScanning #

Stops the barcode scanning process.

Syntax:

                stopScanning() : void
            

pauseScanning #

Pauses the barcode scanning process.

Syntax:

                pauseScanning() : void
            

setLicenseKey #

Set your actual license key provided by the plugin.

Parameters:

licenseKey: license key.

Syntax:

                setLicenseKey(licenseKey : string) : void
            

setFlashEnabled #

Sets the flash (torch) on or off for barcode scanning.

Parameters:

enabled: True to enable the flash, false to disable it.

Syntax:

                setFlashEnabled(enabled : boolean) : void
            

setZoomFactor #

Sets the zoom factor for the camera used in barcode scanning.

Parameters:

zoomFactor: The zoom factor to set.

Syntax:

                setZoomFactor(zoomFactor : number) : void
            

setPinchToZoomEnabled #

Enables or disables pinch-to-zoom functionality for the camera used in barcode scanning.

Parameters:

enabled: True to enable pinch-to-zoom, false to disable it.

Syntax:

                setPinchToZoomEnabled(enabled : boolean) : void
            

setRegionOfInterestVisible #

Sets the visibility of the region of interest (ROI) overlay for barcode scanning.

Parameters:

visible: True to make the ROI visible, false to hide it.

Syntax:

                setRegionOfInterestVisible(visible : boolean) : void
            

setCloseSessionOnResultEnabled #

Sets whether the session should be closed upon detecting a result during barcode scanning.

Parameters:

enabled: True to close the session on result detection, false otherwise

Syntax:

                setCloseSessionOnResultEnabled(enabled : boolean) : void
            

setImageResultEnabled #

Enables or disables the display of image results during barcode scanning.

Parameters:

enabled: True to enable image result display, false to disable it.

Syntax:

                setImageResultEnabled(enabled : boolean) : void
            

setLocationInPreviewEnabled #

Enables or disables displaying the barcode location in the camera preview.

Parameters:

enabled: True to display the location, false to hide it.

Syntax:

                setLocationInPreviewEnabled(enabled : boolean) : void
            

setLocationInImageResultEnabled #

Enables or disables displaying the barcode location in the image result.

Parameters:

enabled: True to display the location, false to hide it.

Syntax:

                setLocationInImageResultEnabled(enabled : boolean) : void
            

setBeepOnSuccessEnabled #

Enables or disables the beep sound on successful barcode scanning.

Parameters:

enabled: True to enable beep sound, false to disable it.

Syntax:

                setBeepOnSuccessEnabled(enabled : boolean) : void
            

setVibrateOnSuccessEnabled #

Enables or disables the vibration on successful barcode scanning.

Parameters:

enabled: True to enable vibration, false to disable it.

Syntax:

                setVibrateOnSuccessEnabled(enabled : boolean) : void
            

setLocationLineColor #

Sets the color of the line indicating the barcode location in the camera preview.

Parameters:

hexColor: The hexadecimal representation of the color.

Syntax:

                setLocationLineColor(hexColor : string) : void
            

setLocationLineWidth #

Sets the width of the line indicating the barcode location in the camera preview.

Parameters:

width: The width representation of the location line.

Syntax:

                setLocationLineWidth(width : number) : void
            

setRoiLineColor #

Sets the color of the line indicating the region of interest (ROI) in the camera preview.

Parameters:

hexColor: The hexadecimal representation of the color.

Syntax:

                setRoiLineColor(hexColor : string) : void
            

setRoiLineWidth #

Sets the width of the line indicating the region of interest (ROI) in the camera preview.

Parameters:

roiLineWidth: The number representation of the width.

Syntax:

                setRoiLineWidth(roiLineWidth : number) : void
            

setRoiOverlayBackgroundColor #

Sets the background color of the region of interest (ROI) overlay in the camera preview.

Parameters:

hexColor: The hexadecimal representation of the color.

Syntax:

                setRoiOverlayBackgroundColor(hexColor : string) : void
            

setRegionOfInterest #

Sets the region of interest (ROI) for barcode scanning within the camera preview.

Parameters:

left: The left coordinate of the ROI.top: The top coordinate of the ROI.width: The width of the ROI.height: The height of the ROI.

Syntax:

                setRegionOfInterest(left : number, top : number, width : number, height : number) : void
            

setBarkoderResolution #

Sets the resolution for barcode scanning.

Parameters:

barkoderResolution: The barkoder resolution to be set.

Syntax:

                setBarkoderResolution(barkoderResolution : BarkoderConstants.BarkoderResolution) : void
            

setDecodingSpeed #

Sets the decoding speed for barcode scanning.

Parameters:

decodingSpeed: The decoding speed to be set.

Syntax:

                setDecodingSpeed(decodingSpeed : BarkoderConstants.DecodingSpeed) : void
            

setFormattingType #

Sets the formatting type for barcode scanning.

Parameters:

formattingType: The formatting type to be set.

Syntax:

                setFormattingType(formattingType : BarkoderConstants.FormattingType) : void
            

setMsiChecksumType #

Sets the checksum type for MSI barcodes.

Parameters:

msiChecksumType: The MSI checksum type to be set.

Syntax:

                setMsiChecksumType(msiCheckSumType : BarkoderConstants.MsiCheckSumType) : void
            

setCode11ChecksumType #

Sets the checksum type for Code 11 barcodes.

Parameters:

code11ChecksumType: The Code 11 checksum type to be set.

Syntax:

                setCode11ChecksumType(code11CheckSumType : BarkoderConstants.Code11CheckSumType) : void
            

setCode39ChecksumType #

Sets the checksum type for Code 39 barcodes.

Parameters:

code39ChecksumType: The Code 39 checksum type to be set.

Syntax:

                setCode39ChecksumType(code39ChecksumType : BarkoderConstants.Code39CheckSumType) : void
            

setEncodingCharacterSet #

Sets the encoding character set for barcode scanning.

Parameters:

encodingCharacterSet: The encoding character set to be set.

Syntax:

                setEncodingCharacterSet(encodingCharSet : string) : void
            

setDatamatrixDpmModeEnabled #

Enables or disables the (DPM) mode for Datamatrix barcodes.

Parameters:

enabled: True to enable DPM mode, false to disable it.

Syntax:

                setDatamatrixDpmModeEnabled(enabled : boolean) : void
            

setUpcEanDeblurEnabled #

Enables or disables deblurring for UPC/EAN barcodes.

Parameters:

enabled: True to enable deblurring, false to disable it.

Syntax:

                setUpcEanDeblurEnabled(enabled : boolean) : void
            

setEnableMisshaped1DEnabled #

Enables or disables the decoding of misshaped 1D barcodes.

Parameters:

enabled: True to enable decoding, false to disable it.

Syntax:

                setEnableMisshaped1DEnabled(enabled : boolean) : void
            

setBarcodeThumbnailOnResultEnabled #

Enables or disables the display of barcode thumbnails in the scan results.

Parameters:

enabled: True to enable barcode thumbnails, false to disable them.

Syntax:

                setBarcodeThumbnailOnResultEnabled(enabled : boolean) : void
            

setMaximumResultsCount #

Sets the maximum number of results to be returned from barcode scanning.

Parameters:

maximumResultsCount: The maximum number of results to return.

Syntax:

                setMaximumResultsCount(maximumResultsCount : number): void
            

setBarcodeTypeEnabled #

Enable the specified barcode types for scanning.

Parameters:

Syntax:

                setBarcodeTypeEnabled(decoders: BarkoderConstants.DecoderType[]): void
            

setEnableVINRestrictions #

Sets whether Vehicle Identification Number (VIN) restrictions are enabled for scanning.

Parameters:

enabled: True to enable VIN restrictions, false to disable them.

Syntax:

                setEnableVINRestrictions(enabled: boolean) : void
            

setThresholdBetweenDuplicatesScans #

Sets the threshold between duplicate scans in milliseconds.

Parameters:

thresholdBetweenDuplicatesScans: The threshold between duplicate scans in milliseconds.

Syntax:

                setThresholdBetweenDuplicatesScans(thresholdBetweenDuplicatesScans : number) : void
            

setThreadsLimit #

Set the threads limit.

Parameters:

threadsLimit: The threads limit.

Syntax:

                setThreadsLimit(threadsLimit : number) : void
            

setMulticodeCachingDuration #

Set the multicode caching duration.

Parameters:

multicodeCachingDuration: multicode caching duration.

Syntax:

                setMulticodeCachingDuration(multicodeCachingDuration : number) : void
            

setMulticodeCachingEnabled #

Set the multicode caching enabled.

Parameters:

multiCodeCachingEnabled: multicode caching enabled.

Syntax:

                setMulticodeCachingEnabled(multiCodeCachingEnabled : boolean) : void
            

getMulticodeCachingEnabled #

Get the multicode caching is enabled.

Syntax:

                getMulticodeCachingEnabled() : any
            

getMulticodeCachingDuration #

Get the multicode caching duration.

Syntax:

                getMulticodeCachingDuration() : any
            

isBarcodeTypeEnabled #

Checks if a specific barcode type is enabled.

Parameters:

barcode: The barcode type to check.

Syntax:

                isBarcodeTypeEnabled(decoder: BarkoderConstants.DecoderType) : boolean
            

setBarcodeTypeLengthRange #

Sets the length range for a specified barcode type.

Parameters:

decoder: The type of barcode.minimumLength: The minimum length of the barcode.maximumLength: The maximum length of the barcode.

Syntax:

                setBarcodeTypeLengthRange(decoder: BarkoderConstants.DecoderType, minimumLength: number, maximumLength: number) : void
            

configureBarkoder #

Set the config for a Barkoder.

Syntax:

                configureBarkoder(config: BarkoderConstants.BarkoderConfig): void
            

getVersion #

Gets barKoder SDK version.

Syntax:

                getVersion() : any
            

getRegionOfInterest #

Gets or sets a value indicating whether the region of interest (ROI) overlay is visible.

Syntax:

                getRegionOfInterest() : any
            

isFlashAvailable #

Get a value indicating whether the flash is available.

Syntax:

                isFlashAvailable(callback : BarkoderConstants.FlashAvailableCallback): Promise<boolean>
            

getMaxZoomFactor #

Get the maximum zoom factor

Syntax:

                getMaxZoomFactor(callback : BarkoderConstants.MaxZoomAvailableCallback): Promise<number>
            

getLocationLineColorHex #

Get the hexadecimal representation of the location line color

Syntax:

                getLocationLineColorHex() : any
            

getRoiLineColor #

Get the hexadecimal representation of the region of interest (ROI) line color.

Syntax:

                getRoiLineColor() : any
            

getRoiOverlayBackgroundColorHex #

Get the hexadecimal representation of the region of interest (ROI) overlay background color.

Syntax:

                getRoiOverlayBackgroundColorHex() : any
            

getEncodingCharacterSet #

Get the character set used for encoding.

Syntax:

                getEncodingCharacterSet() : any
            

getLocationLineWidth #

Get the width of the location line.

Syntax:

                getLocationLineWidth() : any
            

getRoiLineWidth #

Get the width of the region of interest (ROI) line.

Syntax:

                getRoiLineWidth() : any
            

isImageResultEnabled #

Get a value indicating whether image results are enabled.

Syntax:

                isImageResultEnabled() : any
            

isLocationInImageResultEnabled #

Get a value indicating whether the location is displayed in image results.

Syntax:

                isLocationInImageResultEnabled() : any
            

isLocationInPreviewEnabled #

Get a value indicating whether the location is displayed in the camera preview.

Syntax:

                isLocationInPreviewEnabled() : any
            

isPinchToZoomEnabled #

Get a value indicating whether pinch-to-zoom functionality is enabled.

Syntax:

                isPinchToZoomEnabled() : any
            

isBeepOnSuccessEnabled #

Get a value indicating whether a beep sound is played on successful barcode scanning.

Syntax:

                isBeepOnSuccessEnabled() : any
            

isVibrateOnSuccessEnabled #

Get a value indicating whether vibration is enabled on successful barcode scanning.

Syntax:

                isVibrateOnSuccessEnabled() : any
            

isCloseSessionOnResultEnabled #

Get a value indicating whether the session is closed upon detecting a result during barcode scanning.

Syntax:

                isCloseSessionOnResultEnabled() : any
            

getBarkoderResolution #

Get the resolution for barcode scanning.

Syntax:

                getBarkoderResolution() : any
            

getDecodingSpeed #

Get the decoding speed for barcode scanning.

Syntax:

                getDecodingSpeed() : any
            

getFormattingType #

Get the formatting type for barcode scanning.

Syntax:

                getFormattingType() : any
            

getMsiCheckSumType #

Get the checksum type for MSI barcodes.

Syntax:

                getMsiCheckSumType() : any
            

getCode11CheckSumType #

Get the checksum type for Code 11 barcodes.

Syntax:

                getCode11CheckSumType() : any
            

getCode39CheckSumType #

Get the checksum type for Code 39 barcodes.

Syntax:

                getCode39CheckSumType() : any
            

isUpcEanDeblurEnabled #

Get a value indicating whether deblurring is enabled for UPC/EAN barcodes.

Syntax:

                isUpcEanDeblurEnabled() : any
            

isMisshaped1DEnabled #

Get a value indicating whether decoding of misshaped 1D barcodes is enabled.

Syntax:

                isMisshaped1DEnabled() : any
            

isBarcodeThumbnailOnResultEnabled #

Get a value indicating whether barcode thumbnails are enabled in the scan results.

Syntax:

                isBarcodeThumbnailOnResultEnabled() : any
            

getMaximumResultsCount #

Get the maximum number of results to be returned from barcode scanning.

Syntax:

                getMaximumResultsCount() : any
            

isVINRestrictionsEnabled #

Get a value indicating whether Vehicle Identification Number (VIN) restrictions are enabled for scanning.

Syntax:

                isVINRestrictionsEnabled() : any
            

getThresholdBetweenDuplicatesScans #

Get the threshold between duplicate scans in seconds.

Syntax:

                getThresholdBetweenDuplicatesScans() : any
            

setCustomOption #

                ▸ setCustomOption(string, int`): void
            

Setting custom option.

Parameters:

NameType
stringString
intnumber

getThreadsLimit #

Get the threads limit.

Syntax:

                getThreadsLimit() : any
            

captureImage #

Captures the latest camera frame.

Syntax:

                captureImage()
            

freezeScanning #

Freezes the current AR scanning session by capturing a still image from the camera feed. Use only when AR mode is enabled to temporarily freeze the view while keeping overlays visible.

Syntax:

                freezeScanning()
            

unfreezeScanning #

Unfreezes the AR scanning session by removing the still image and reactivating the camera and overlays. Use only when AR mode is enabled to restore the live AR view and continue scanning.

Syntax:

                unfreezeScanning()
            

scanImage #

Scan from base64 image string.

Parameters:

base64: String.

resultsCallback: ResultCalllBack.

Syntax:

                scanImage(base64, resultsCallback)
            

setBarkoderARMode #

                ▸ setBarkoderARMode(value): void
            

Sets the AR mode used for barcode scanning visualization.

Parameters:

NameType
valueBarkoderARMode

setResultDisappearanceDelayMs #

                ▸ setResultDisappearanceDelayMs(value): void
            

Parameters:

NameType
valuenumber

setARLocationTransitionSpeed #

                ▸ setARLocationTransitionSpeed(value): void
            

Parameters:

NameType
valuenumber

setAROverlayRefresh #

                ▸ setAROverlayRefresh(value): void
            

Parameters:

NameType
valueBarkoderAROverlayRefresh

setARSelectedLocationColor #

                ▸ setARSelectedLocationColor(value): void
            

Parameters:

NameType
hexColorstring

setARNonSelectedLocationColor #

                ▸ setARNonSelectedLocationColor(value): void
            

Parameters:

NameType
hexColorstring

setARSelectedLocationLineWidth #

                ▸ setARSelectedLocationLineWidth(value): void
            

Parameters:

NameType
valuenumber

setARNonSelectedLocationLineWidth #

                ▸ setARNonSelectedLocationLineWidth(value): void
            

Parameters:

NameType
valuenumber

setARLocationType #

                ▸ setARLocationType(value): void
            

Parameters:

NameType
valueBarkoderARLocationType

setARDoubleTapToFreezeEnabled #

                ▸ setARDoubleTapToFreezeEnabled(enabled): void
            

Parameters:

NameType
enabledboolean

setARImageResultEnabled #

                ▸ setARImageResultEnabled(enabled): void
            

Parameters:

NameType
enabledboolean

setARBarcodeThumbnailOnResultEnabled #

                ▸ setARBarcodeThumbnailOnResultEnabled(enabled): void
            

Parameters:

NameType
enabledboolean

setARResultLimit #

                ▸ setARResultLimit(value): void
            

Parameters:

NameType
valuenumber

setARContinueScanningOnLimit #

                ▸ setARContinueScanningOnLimit(value): void
            

Parameters:

NameType
valueboolean

setAREmitResultsAtSessionEndOnly #

                ▸ setAREmitResultsAtSessionEndOnly(value): void
            

Parameters:

NameType
valueboolean

setARHeaderHeight #

                ▸ setARHeaderHeight(value): void
            

Parameters:

NameType
valuenumber

setARHeaderShowMode #

                ▸ setARHeaderShowMode(value): void
            

Parameters:

NameType
valueBarkoderARHeaderShowMode

setARHeaderMaxTextHeight #

                ▸ setARHeaderMaxTextHeight(value): void
            

Parameters:

NameType
valuenumber

setARHeaderMinTextHeight #

                ▸ setARHeaderMinTextHeight(value): void
            

Parameters:

NameType
valuenumber

setARHeaderTextColorSelected #

                ▸ setARHeaderTextColorSelected(value): void
            

Parameters:

NameType
hexColorstring

setARHeaderTextColorNonSelected #

                ▸ setARHeaderTextColorNonSelected(value): void
            

Parameters:

NameType
hexColorstring

setARHeaderHorizontalTextMargin #

                ▸ setARHeaderHorizontalTextMargin(value): void
            

Parameters:

NameType
valuenumber

setARHeaderVerticalTextMargin #

                ▸ setARHeaderVerticalTextMargin(value): void
            

Parameters:

NameType
valuenumber

setARHeaderTextFormat #

                ▸ setARHeaderTextFormat(value): void
            

Parameters:

NameType
valuestring

setCamera #

                ▸ setCamera(value): void
            

Parameters:

NameType
valuenumber

setEnableComposite #

                ▸ setEnableComposite(value): void
            

Parameters:

NameType
valuenumber

setIdDocumentMasterChecksumEnabled #

                ▸ setIdDocumentMasterChecksumEnabled(enabled): void
            

Parameters:

NameType
enabledboolean

setQrDpmModeEnabled #

                ▸ setQrDpmModeEnabled(enabled): void
            

Parameters:

NameType
enabledboolean

setQrMicroDpmModeEnabled #

                ▸ setQrMicroDpmModeEnabled(enabled): void
            

Parameters:

NameType
enabledboolean

setQrMultiPartMergeEnabled #

                ▸ setQrMultiPartMergeEnabled(enabled): void
            

Parameters:

NameType
enabledboolean

setScanningIndicatorAlwaysVisible #

                ▸ setScanningIndicatorAlwaysVisible(value): void
            

Parameters:

NameType
valueboolean

setScanningIndicatorColor #

                ▸ setScanningIndicatorColor(value): void
            

Parameters:

NameType
hexColorString

setScanningIndicatorWidth #

                ▸ setScanningIndicatorWidth(lineWidth): void
            

Parameters:

NameType
lineWidthnumber

setScanningIndicatorAnimation #

                ▸ setScanningIndicatorAnimation(animation): void
            

Parameters:

NameType
animationnumber

setShowDuplicatesLocations #

                ▸ setShowDuplicatesLocations(value): void
            

Enables or disables showing duplicate barcode locations on the preview overlay.

Parameters:

NameType
valueboolean

setUPCEexpandToUPCA #

                ▸ setUPCEexpandToUPCA(enabled): void
            

Sets whether the UPC-E barcodes should be expanded to UPC-A format.

Parameters:

NameType
enabledboolean

setUPCE1expandToUPCA #

                ▸ setUPCE1expandToUPCA(enabled): void
            

Sets whether the UPC-E1 barcodes should be expanded to UPC-A format.

Parameters:

NameType
enabledboolean

setPowerSavingMode #

                ▸ setPowerSavingMode(powerSavingMode): void
            

Power saving mode level. Higher values reduce CPU/battery usage by limiting frame processing.

Default value is 0.
0 - Disabled (full performance)
1 - Light saving
2 - Medium saving
3 - High saving
4 - Maximum saving

Parameters:

NameType
powerSavingModenumber

setVideoStabilization #

                ▸ setVideoStabilization(value): void
            

Enable or disable video stabilization for smoother video capture.

Parameters:

NameType
valueboolean

unfreezeScanning #

                ▸ unfreezeScanning(): void
            

Unfreezes the AR scanning session by removing the still image and reactivating the camera and overlays. Use only when AR mode is enabled to restore the live AR view and continue scanning.

selectVisibleBarcodes #

Selects all barcodes that are currently visible in AR mode.

Syntax:

                selectVisibleBarcodes()
            

setCentricFocusAndExposure #

Selects all barcodes that are currently visible in AR mode.

Parameters:

value: A boolean indicating whether the center of the viewfinder should be used.

Syntax:

                setCentricFocusAndExposure(boolean enabled)
            

setDynamicExposure #

Sets the camera's exposure dynamically based on the provided intensity, cycling through predefined compensation values.

Parameters:

  • value: The integer value for the exposure intensity.

Syntax:

                setDynamicExposure(int exposure)
            

setCamera #

Sets the camera to be used for scanning (back/front).

Parameters:

  • value: The value which camera should be used.

Syntax:

                setCamera(BarkoderCameraPosition barkoderCameraPosition)
            

setVideoStabilization #

Enable or disable video stabilization for smoother video capture.

Parameters:

  • value: A boolean indicating whether video stabilization should be enabled/disabled.

Syntax:

                setVideoStabilization(BarkoderCameraPosition barkoderCameraPosition)
            

getBarkoderARMode #

                ▸ getBarkoderARMode()
            

Retrieves the current AR mode used for barcode scanning.

getResultDisappearanceDelayMs #

                ▸ getResultDisappearanceDelayMs()
            

Retrieves the delay after which AR results disappear once detected.

getARLocationTransitionSpeed #

                ▸ getARLocationTransitionSpeed()
            

Retrieves the transition speed for AR barcode location overlays.

getAROverlayRefresh #

                ▸ getAROverlayRefresh()
            

Retrieves the AR overlay refresh mode.

getARSelectedLocationColor #

                ▸ getARSelectedLocationColor()
            

Retrieves the color used for selected barcode overlays in AR mode.

getARNonSelectedLocationColor #

                ▸ getARNonSelectedLocationColor()
            

Retrieves the color used for non-selected barcode overlays in AR mode.

getARSelectedLocationLineWidth #

                ▸ getARSelectedLocationLineWidth()
            

Retrieves the line width for selected barcode overlays in AR mode.

getARNonSelectedLocationLineWidth #

                ▸ getARNonSelectedLocationLineWidth()
            

Retrieves the line width for non-selected barcode overlays in AR mode.

getARLocationType #

                ▸ getARLocationType()
            

Retrieves the style of AR location overlays (tight, bounding box, none).

getARResultLimit #

                ▸ getARResultLimit()
            

Retrieves the maximum number of results allowed in a single AR scanning session.

getARContinueScanningOnLimit #

                ▸ getARContinueScanningOnLimit()
            

Retrieves whether scanning continues when the result limit is reached (only in .interactiveDisabled mode).

getAREmitResultsAtSessionEndOnly #

                ▸ getAREmitResultsAtSessionEndOnly()
            

Retrieves whether results are emitted only at AR session end (or when the limit is reached).

getARHeaderHeight #

                ▸ getARHeaderHeight()
            

Retrieves the header height above barcode in AR mode.

getBarkoderARHeaderShowMode #

                ▸ getBarkoderARHeaderShowMode()
            

Retrieves the header display mode (always, on selected, never).

getARHeaderMaxTextHeight #

                ▸ getARHeaderMaxTextHeight()
            

Retrieves the maximum text height for AR headers.

getARHeaderMinTextHeight #

                ▸ getARHeaderMinTextHeight()
            

Retrieves the minimum text height for AR headers.

getARHeaderTextColorSelected #

                ▸ getARHeaderTextColorSelected()
            

Retrieves the header text color for selected barcodes.

getARHeaderTextColorNonSelected #

                ▸ getARHeaderTextColorNonSelected()
            

Retrieves the header text color for non-selected barcodes.

getARHeaderHorizontalTextMargin #

                ▸ getARHeaderHorizontalTextMargin()
            

Retrieves the horizontal margin for AR header text.

getARHeaderVerticalTextMargin #

                ▸ getARHeaderVerticalTextMargin()
            

Retrieves the vertical margin for AR header text.

getARHeaderTextFormat #

                ▸ getARHeaderTextFormat()
            

Retrieves the format string used for AR header text.

getShowDuplicatesLocations #

                ▸ getShowDuplicatesLocations()
            

Retrieves whether showing duplicate barcode locations in the AR view is enabled.

getScanningIndicatorColorHex #

                ▸ getScanningIndicatorColorHex()
            

Retrieves the hexadecimal color code representing the line color of the scanning indicator on the camera preview.

getScanningIndicatorWidth #

                ▸ getScanningIndicatorWidth()
            

Retrieves the current width setting for the scanning indicator on the camera preview.

getScanningIndicatorAnimation #

                ▸ getScanningIndicatorAnimation()
            

Retrieves the current animation setting for the scanning indicator on the camera preview.

isARDoubleTapToFreezeEnabled #

                ▸ isARDoubleTapToFreezeEnabled()
            

Checks whether double-tap to freeze is enabled in AR mode.

isARImageResultEnabled #

                ▸ isARImageResultEnabled()
            

Retrieves whether image result is enabled for AR mode.

isARBarcodeThumbnailOnResultEnabled #

                ▸ isARBarcodeThumbnailOnResultEnabled()
            

Retrieves whether barcode thumbnail on result is enabled for AR mode.

isIdDocumentMasterChecksumEnabled #

                ▸ isIdDocumentMasterChecksumEnabled()
            

Retrieves whether Master checksum is enabled when scanning ID Documents.

isQrDpmModeEnabled #

                ▸ isQrDpmModeEnabled()
            

Retrieves whether Direct Part Marking (DPM) mode for QR barcodes is enabled.

isQrMicroDpmModeEnabled #

                ▸ isQrMicroDpmModeEnabled()
            

Retrieves whether Direct Part Marking (DPM) mode for QR Micro barcodes is enabled.

isQrMultiPartMergeEnabled #

                ▸ isQrMultiPartMergeEnabled()
            

Retrieves whether the QR multi-part merge mode is enabled.

isScanningIndicatorAlwaysVisible #

                ▸ isScanningIndicatorAlwaysVisible()
            

Retrieves if the scanning indicator is set to be always visible on the camera preview.

getPowerSavingMode #

                ▸ getPowerSavingMode()
            

Retrieves the power saving mode level.

Models, enums, interfaces #

BarkoderResultCallback #

Represents a callback for handling barcode scanning events. Called when barcode scanning has finished.

                export interface BarkoderResultCallback {
  scanningFinished(results: any[], thumbnails: any[], resultImage: any): void;
}
            

Results

  • textualData: The textual data encoded in the barcode.
  • barcodeTypeName: The type name of the barcode.
  • characterSet: The character set used in encoding the barcode.

DecoderType #

Represents the types of barcodes that are supported by barKoder.

                export enum DecoderType {
  Aztec = 0,
  AztecCompact = 1,
  QR = 2,
  QRMicro = 3,
  Code128 = 4,
  Code93 = 5,
  Code39 = 6,
  Codabar = 7,
  Code11 = 8,
  Msi = 9,
  UpcA = 10,
  UpcE = 11,
  UpcE1 = 12,
  Ean13 = 13,
  Ean8 = 14,
  PDF417 = 15,
  PDF417Micro = 16,
  Datamatrix = 17,
  Code25 = 18,
  Interleaved25 = 19,
  ITF14 = 20,
  IATA25 = 21,
  Matrix25 = 22,
  Datalogic25 = 23,
  COOP25 = 24,
  Code32 = 25,
  Telepen = 26,
  Dotcode = 27
}
            

BarkoderResolution #

                export enum BarkoderResolution {
  NORMAL = 'HD',
  HIGH = 'Full HD'
}
            

DecodingSpeed #

                export enum DecodingSpeed {
  Fast = 0,
  Normal = 1,
  Slow = 2
}
            

FormattingType #

                export enum FormattingType {
  Disabled = 0,
  Automatic = 1,
  GS1 = 2,
  AAMVA = 3
}
            

Code11ChecksumType #

                export enum Code11ChecksumType {
  Disabled = 0,
  Single = 1,
  Double = 2
}
            

Code39ChecksumType #

                export enum Code39ChecksumType {
  Disabled = 0,
  Enabled = 1
}
            

MsiChecksumType #

                export enum MsiChecksumType {
  Disabled = 0,
  Mod10 = 1,
  Mod11 = 2,
  Mod1010 = 3,
  Mod1110 = 4,
  Mod11IBM = 5,
  Mod1110IBM = 6
}

            

Page Contents